How to Fix a Word Macro That Cannot Be Found or Is Disabled
Question details
The user is encountering an error indicating that a macro cannot be found or is disabled when attempting to run a script or use an add-in in Word.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Attempting to run a macro or utilize a macro-enabled add-in to automate tasks in a Word document.
- Observed behavior
- Word throws an error stating the macro is unavailable, cannot be found, or has been disabled, blocking the execution of the VBA code.
Ensure you know the original source of the macro or add-in, as enabling macros from untrusted sources can expose your system to potential security risks.
Adjust Trust Center Macro Settings
If macros are disabled by default for security reasons, you need to manually enable them or add the file's directory to your Trusted Locations.
Microsoft Word incorporates a Trust Center that restricts potentially unsafe code from executing automatically. If a macro is blocked by these security settings, adjusting the permissions will resolve the issue.
Click on 'File' in the top-left corner and select 'Options' at the bottom of the menu to open the Word Options dialog box.
Select 'Trust Center' from the left pane, then click the 'Trust Center Settings' button on the right.
Click on 'Macro Settings' in the left menu. Choose 'Disable all macros with notification' so you can selectively allow trusted macros when prompted.
Click 'OK' to apply the changes, then completely close and restart Word for the new security settings to take effect.

Verify the Macro-Enabled File Format
Standard Word documents (.docx) strip away VBA code upon saving. You must ensure the file is saved in a macro-compatible format.
Experience a Seamless and Secure Document Editor with WPS Office
If you are experiencing persistent macro issues or complex security configurations in Microsoft Word, consider trying WPS Office. It provides a highly compatible, lightweight, and intuitive environment for handling all your document tasks efficiently.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button.
- 2. Install the Software: Run the downloaded installer file and follow the simple on-screen instructions.
- 3. Open Your Documents: Launch WPS Writer and seamlessly open your existing Word documents to continue your work without interruption.

Frequently Asked Questions
Why does the ribbon show my custom macro button but clicking it says the macro cannot be found?
This typically happens if the document was originally created with macros but was later saved as a standard .docx file. The .docx format actively strips out all VBA code during saving, leaving only the user interface customizations (like ribbon buttons) intact.
How do I know if a macro is safe to enable and run?
Only run macros from trusted sources, internal company developers, or verified third-party creators. You can also manually inspect the VBA code by pressing Alt + F11 to open the Visual Basic Editor before running the macro to ensure it does not contain unexpected commands.
Does changing the Trust Center macro settings require restarting Word?
Yes, in most cases, after you change your macro security settings or add a new folder to the Trusted Locations in the Trust Center, you must completely close and restart Word for the new permissions to be fully applied.
Can a corrupted add-in file cause this disabled macro error?
Yes. If the add-in template file (.dotm) becomes corrupted, Word may fail to read the internal VBA project properly. Disabling the add-in, deleting it, and replacing it with a fresh, uncorrupted copy will typically resolve the issue.




