How to Fix Word Macros Not Working or Invalid Project Item Name
Question details
Users are unable to run, edit, or create Microsoft Word macros, often accompanied by an 'invalid project item name' error.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Attempting to execute, edit existing macros, or create new VBA macros within Microsoft Word.
- Observed behavior
- Word macros fail to execute, cannot be edited or created, and the application reports that the project item name is invalid.
Before modifying any global template files, ensure Microsoft Word is completely closed and create a copy of your existing Normal.dotm file to prevent accidental data loss.
Check and Restore the Normal.dotm Template
Since most macros are stored in the global Normal.dotm template, replacing a corrupted template with a healthy backup can restore your macro functionality.
Word macros are typically stored in Normal.dotm, but they can also reside in other global templates or specific .dotm and .docm files. If the primary template becomes corrupted, Word may block macro execution.
Open File Explorer and navigate to your Microsoft Word Templates directory. Search for files containing 'normal' in the filename.
Check the modification dates and file sizes of the Normal.dotm files to identify which version might contain your missing macros.
Rename the current, problematic Normal.dotm file to something like Normal_old.dotm so Word does not load it on startup.
If you have a previously saved backup of your working Normal.dotm, copy it into the Templates folder and ensure it is named Normal.dotm. Restart Word to test the macros.

Use AutoText or AutoCorrect for Reusable Text
If your macros were primarily used for inserting standard text snippets and cannot be recovered, use built-in text features as a more stable alternative.
Try WPS Office for a Stable Document Experience
If you frequently encounter template corruption or macro errors in Microsoft Word, consider switching to WPS Office. It is a highly compatible, lightweight, and free alternative that supports VBA in its premium versions while offering a familiar interface for all your document needs.
- 1. Download and install: Visit the official WPS website to download the free installation package for your operating system.
- 2. Open your Word documents: Launch WPS Writer and go to Menu > Open to select your existing Word documents or templates.
- 3. Enable macros (Premium): If using WPS Pro, navigate to the Developer tab to manage and run your VBA macros seamlessly.

Frequently Asked Questions
Where are macros stored in Microsoft Word?
By default, Word macros are stored in the global template file named Normal.dotm. However, they can also be saved in custom template files (.dotm) or macro-enabled documents (.docm).
Why does Word say the project item name is invalid?
This error typically occurs when the VBA module inside the document or template has become corrupted, or if there is a naming conflict within the macro code. Restoring a healthy backup of Normal.dotm often resolves it.
Are AutoText and macros the same thing?
No. Macros use VBA programming to automate complex tasks and repetitive actions. AutoText is a simpler built-in feature designed specifically for saving and inserting reusable blocks of text or graphics.
Can I recover macros if I don't have a backup of Normal.dotm?
If the Normal.dotm file is entirely corrupted and you do not have a previous backup, the VBA code is usually lost. You will need to recreate the macros manually or copy the code from another document where they might still exist.




