Fix Office.js Add-In Macro Warnings in Word for Microsoft 365
Question details
The user needs to stop repeated Word macro warnings that are linked to an Office.js add-in and determine whether removing the add-in ribbon elements resolves the issue.

- Product
- Word for Microsoft 365 with an Office.js add-in
- Device & OS
- Windows 10
- Scenario
- A user opens Word documents and uses the Compare feature while an Office.js add-in is installed.
- Observed behavior
- Word repeatedly displays warnings that a function contains macros or requires macro language support. The warnings disappear when add-ins are disabled and do not occur on Mac.
Before editing the add-in, confirm that the warnings disappear when all Word add-ins are disabled, and identify the deployed add-in manifest that contains the ribbon definition.
Remove ribbon elements from the Office.js add-in manifest
Use this permanent fix when the warning disappears after disabling the add-in. Removing the custom ribbon trigger stops Word from misreading the add-in as a macro warning.
The issue can occur when an Office.js add-in includes a custom ribbon tab or icon. Word for Microsoft 365 may misinterpret those ribbon controls and show a warning that a function contains macros or requires macro language support during open and Compare operations.
After you remove the ribbon elements, the add-in no longer creates the ribbon entry, so users open it through Insert > Get Add-ins > My Add-ins instead.
Find the manifest XML file for the deployed Office.js add-in in your add-in project source or the Microsoft 365 admin deployment location.
Create a copy of the XML manifest before making changes so you can restore it if needed.
Open the manifest in a code editor, delete the CustomTab or ribbon group block and associated icon elements, then save and validate the XML.
Upload the revised manifest in the Microsoft 365 admin center or your development deployment, then close and reopen Word.
In Word, go to Insert > Get Add-ins > My Add-ins and select the add-in to run it after the ribbon shortcut is removed.

Use Word startup switches and Trust Center checks to isolate the trigger
Use this diagnostic method to confirm whether an add-in is responsible and to review macro security settings before editing the manifest.
Avoid Office Add-In Macro Warnings with WPS Office
The repeated macro warning is caused by Microsoft Word's handling of Office.js add-in ribbon elements. WPS Office is a free, lightweight alternative that opens Word documents with high compatibility and a familiar ribbon interface, so you can keep working without this add-in prompt.
- 1. Download WPS Office: Go to the official WPS Office website and select Download WPS Office Free to install the suite.
- 2. Open your Word document: Launch WPS Writer and open the existing .docx file from your computer.
- 3. Work without add-in ribbon warnings: Use the familiar ribbon tools to edit, compare, and save the document without Office.js add-in macro prompts.

Frequently Asked Questions
Why do I get a macro warning when opening Word with an Office.js add-in installed?
In Word for Microsoft 365, an Office.js add-in that includes a custom ribbon tab or icon can be misinterpreted as requiring macro language support. Removing those ribbon elements from the manifest stops the warning.
Will disabling the add-in stop the warning?
Yes, if the warning disappears when add-ins are disabled, the add-in is likely triggering it. For a permanent fix, remove the custom ribbon elements from the add-in manifest and redeploy it.
How do I open the Office.js add-in after removing its ribbon button?
In Word, go to Insert > Get Add-ins > My Add-ins and select the add-in from the list. This launches it without the ribbon shortcut.
Can I adjust Trust Center macro settings to stop the warning?
You can review File > Options > Trust Center > Trust Center Settings > Macro Settings, but if the prompt is triggered by the add-in ribbon element, changing macro settings alone may not fully fix it.
Does WPS Office have this macro warning problem?
No, WPS Office does not use Office.js add-in ribbon elements in the same way. WPS Writer opens Word documents, including .docx files, with a familiar ribbon and is a free alternative if you want to avoid the prompt.




