Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
If Office came preinstalled with your old computer (a so-called OEM license), you can't transfer the license.
On the other hand, if you have an installation disc, or an associated account, you can install Office on the new PC. If you need assistance with activation, go to https://support.microsoft.com/en-us/windows/activation/activate-microsoft-perpetual-products-using-the-product-activation-portal .