Fix Word’s VBA Project Warning When Saving a Document
Question details
The user needs to save a Word document after seeing a warning that its VBA project cannot be saved in a macro-free document.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Saving a document that may contain a macro or VBA project, even though the user did not create one.
- Observed behavior
- Word warns that the VBA project cannot be saved in a macro-free document.
Decide whether the document needs its macros or VBA project. Saving as DOCM preserves the project, while moving text into a new DOCX is appropriate when the code is not needed.
Save the document as a macro-enabled DOCM file
Use this option when you need to preserve the document’s VBA project.
In Word, select File > Save As and choose a location.
In the file format or Save as type menu, select Word Macro-Enabled Document (*.docm).
Enter a file name and select Save.

Move the text into a new macro-free document
Use this option if you only need the text and do not need the VBA project.
Edit Word documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for editing Word documents. Its format compatibility makes it easy to move everyday document work from Microsoft Office; it does not fix Word’s VBA warning.

Frequently Asked Questions
Why does Word show this warning if I never created a macro?
The document may contain a VBA project from an earlier version, another author, or a document used as its starting point. Word warns because the macro-free DOCX format cannot retain that project.
Which format should I choose to keep the VBA project?
Select File > Save As and choose Word Macro-Enabled Document (*.docm). This preserves the project in the saved file.
Can I save just the text without the VBA project?
Yes. Copy the required text into a new blank document, use the Keep Text Only paste option, and save it as Word Document (*.docx). Check the result because formatting and other objects may not be retained.
Does saving a DOCM file automatically run its macros?
No. Saving in DOCM format preserves the VBA project, but Word’s macro security settings still control whether macros can run.




