Fix Word Applying New Styles When Opening Documents
Question details
Opening a document triggers unexpected actions in the Undo list and applies new styles automatically, even when the auto-update styles setting is disabled.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Opening an existing document that has a custom template or embedded macros attached.
- Observed behavior
- Multiple actions are immediately created in the Undo list, and a new style is applied to the document content automatically upon opening.
Ensure you have saved your current work before making changes to the document templates. It is also helpful to check if your document contains any active macros that you are not aware of.
Review Macros and Attach the Default Normal.dotm Template
This solution prevents unwanted macros embedded in a custom template from modifying your document automatically upon opening.
When a document's attached template contains AutoOpen macros, those scripts will execute as soon as the file is opened, changing styles and populating the Undo history. Reverting to the default Normal.dotm template removes these unintended modifications.
Go to the Developer tab (enable it in Options > Customize Ribbon if it is hidden) and click on 'Macros' to see if any AutoOpen or AutoNew scripts are listed.
Navigate to the Developer tab and click on 'Document Template'. Alternatively, you can go to File > Options > Add-ins, select 'Templates' from the Manage drop-down menu, and click 'Go'.
In the Templates and Add-ins dialog box, look at the document template path. Click 'Attach' and browse to select the default 'Normal.dotm' file (usually located in AppData\Roaming\Microsoft\Templates).
Ensure that 'Automatically update document styles' remains unchecked. Click OK, save the document, close it, and then reopen it to verify that no new styles are applied.
Experience Hassle-Free Document Editing with WPS Office
If complex template macros and unexpected formatting glitches in Microsoft Word are disrupting your workflow, try WPS Office. It provides a highly compatible and lightweight environment for your documents, ensuring that your formatting stays exactly as you intended.
- 1. Download and install: Get WPS Office for free from the official website and run the lightweight installer on your computer.
- 2. Open your existing files: Launch WPS Writer, click 'Open', and select your existing .docx or .doc files to load them instantly.
- 3. Edit with confidence: Enjoy a clean, distraction-free editing experience where your styles and layouts remain securely intact.

Frequently Asked Questions
Why does Word create Undo actions right after opening a document?
This usually happens when a macro or a third-party add-in automatically runs upon opening the file. The macro makes immediate changes to the document's styles or layout, which the system logs as undoable actions before you even start typing.
Where can I find the Normal.dotm template?
By default in Windows, the Normal.dotm template is located in your user directory under C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Templates. You can manually navigate here to attach or reset it.
Does disabling 'Automatically update document styles' stop all style changes?
No. While it stops styles from automatically syncing with the attached template's style definitions, it will not prevent VBA macros that are specifically scripted to modify text formatting when the document opens.
Can I permanently disable AutoOpen macros in my documents?
Yes. You can disable all macros by going to File > Options > Trust Center > Trust Center Settings > Macro Settings, and selecting 'Disable all macros with notification'.




