How to Fix Word Changing Header and Footer Styles When Saving
Question details
The user needs to stop Word from automatically applying a 'List Paragraph' numbered format to headers and footers every time a specific DOCM file is saved.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Saving a DOCM (macro-enabled) template or document without making manual formatting changes.
- Observed behavior
- Headers and footers originally formatted as normal text automatically change to a numbered list style upon saving. Reverting the style to Normal and saving again causes the issue to repeat.
Create a backup copy of your DOCM file before modifying its template settings or macros so you have a safe version to return to if needed.
Disable Automatic Style Updates from the Template
Prevent Word from overriding your document's current formatting with the attached template's styles whenever the file is saved or opened.
When a document is linked to a template with the 'Automatically update document styles' setting enabled, Word refreshes the styles upon saving. If the template contains corrupted numbering definitions for the Normal or Header styles, this refresh will forcefully apply those unwanted formats.
If you don't see the Developer tab on your ribbon, go to File > Options > Customize Ribbon, check the 'Developer' box in the right column, and click OK.
Navigate to the Developer tab and click on 'Document Template' in the Templates group to open the Templates and Add-ins dialog box.
Under the 'Templates' tab, locate the checkbox labeled 'Automatically update document styles' and uncheck it.
Click OK to apply the changes. Reformat your headers and footers to the Normal style, then save the document to verify that the formatting remains stable.

Inspect Macros for Save-Triggered Formatting
Check if a VBA macro embedded in the DOCM file is running formatting commands during the save process.
Modify the Template's Base Style Definitions
Correct the underlying style definitions in the document to ensure they do not include numbering by default.
Try WPS Office for Stable Document Formatting
If Microsoft Word continues to struggle with template style conflicts and unexpected macro behaviors, consider switching to WPS Office. It provides a lightweight, highly compatible environment that preserves your intended formatting natively.

Frequently Asked Questions
Why do my Word document styles change automatically when I open or save it?
This usually happens because the 'Automatically update document styles' setting is enabled in your Templates and Add-ins menu. This setting forces the document to sync its formatting with the attached template, overriding any manual changes you made.
How do I remove unwanted numbered lists from my header and footer?
Double-click the header or footer area to activate it. Select the numbered text, navigate to the Home tab, and click the 'Numbering' icon in the Paragraph group to toggle it off. You may also need to apply a clean 'Header' or 'Normal' style from the Styles gallery.
Can a macro in a DOCM file change my document formatting when saving?
Yes. DOCM files can contain Visual Basic for Applications (VBA) macros that are triggered by specific events, such as saving the document. If a developer included formatting commands in a 'BeforeSave' macro, it will alter your text styles automatically without any manual input.




