A family of Microsoft word processing software products for creating web, email, and print documents.
Take a look at this tip:
https://tipsmake.com/how-to-fix-office-error-the-function-you-are-attempting-to-run-contains-macros
Note: the instructions are for Office 2007. In 2019/365 the start of the path is File menu > Options command. After that the old instructions still apply.
I had this problem - plagued me trying to open students work to assess submitted through Teams (requiring the full features of Word).
All the option of running change apps etc via settings only applies to Office 2007 and earlier.
I changed word to run as admin - this worked from the start menu, but also had to change the properties of Winword.exe to run as admin. So far this seems to work.