How to Fix a Macro-Enabled Word Document That Will Not Save
Question details
The user is unable to save a Word document containing macros, often encountering disk-space errors, lost VBA changes, or format issues.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Saving a document that contains custom VBA macro code.
- Observed behavior
- The document fails to save, reports incorrect disk-space errors, or loses macro changes upon saving due to format, permissions, or security settings.
Ensure that your document is not currently set to read-only and that you have sufficient write permissions for the destination folder.
Save as a Macro-Enabled Document (DOCM)
Standard Word documents cannot store VBA code. You must save the file in the correct macro-enabled format to prevent VBA changes from being lost.
Saving a file containing macros as a standard DOCX will automatically strip the VBA code for security reasons. Switching to the DOCM format ensures your code is preserved and resolves format-related saving errors.
Click on the File tab in the top-left corner of the window and select Save As.
Click the 'Save as type' drop-down list below the file name box and choose 'Word Macro-Enabled Document (*.docm)'.
Select your desired destination folder and click Save.

Store Macros in a Trusted Global Template
Documents containing macros are more likely to trigger strict Word security settings, preventing the file from saving correctly. Moving macros to a template can bypass these blocks.
Temporarily Disable Add-ins and Adjust Security
Conflicting COM add-ins or strict Trust Center settings can block macro execution and interfere with the saving process.
Save and Edit Macro-Enabled Documents with WPS Writer
WPS Office provides seamless compatibility with Microsoft Word macro-enabled formats (DOCM and DOTM), allowing you to safely edit, run, and save your VBA code without frustrating save errors or formatting restrictions.
- 1. Open Your Document: Launch WPS Writer and open the document containing your macros.
- 2. Access the Save Menu: Click on the Menu button in the top-left corner and select Save As.
- 3. Select Macro Format: From the File Type drop-down list, select 'Macro-Enabled Document (*.docm)'.
- 4. Save Securely: Choose a trusted local folder and click Save to preserve your VBA code and formatting.

Frequently Asked Questions
Why does my macro-enabled document save as a regular DOCX?
This happens if you do not explicitly change the file type to a Macro-Enabled Document (*.docm) when saving. Word defaults to DOCX, which automatically removes VBA macros for security purposes.
What causes the 'incorrect disk-space' error when saving a Word document?
This error is often a false flag triggered by corrupted macro code, strict network folder permissions, or conflicting add-ins rather than actual low storage. Saving the file locally or moving the macros to a global template usually resolves it.
How do I safely enable macros in a downloaded document?
When you open a macro-enabled file, a yellow security warning bar will appear at the top of the document. Only click 'Enable Content' if you completely trust the sender, as malicious macros can harm your computer.
Can I share my macros across multiple Word documents?
Yes. Instead of saving macros in individual documents, you can save your VBA code in the global Normal.dotm template or a custom DOTM template. Any document attached to that template will have access to the macros.




