VBA & Macro Problems

Fix Word’s VBA Project Warning When Saving a Document

Nimra MalikNimra Malik Nov 20, 2026 868 views

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.

Fix the VBA Project Warning When Saving a Word 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.
Before you start

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.

Solution 1Recommended

Save the document as a macro-enabled DOCM file

Use this option when you need to preserve the document’s VBA project.

1
Open Save As

In Word, select File > Save As and choose a location.

2
Choose the macro-enabled format

In the file format or Save as type menu, select Word Macro-Enabled Document (*.docm).

3
Save the file

Enter a file name and select Save.

Save the document as a macro-enabled DOCM file
Macro security still applies: Saving as DOCM preserves the VBA project but does not automatically enable macros. Only enable macros from sources you trust.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word DOCX files.Create and save macro-free documents for everyday text editing.Use a familiar interface for an easier transition from Microsoft Office.Work with a free, lightweight office suite.
microsoft office alternative - wps office

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.