When you modify a Word template (.dotx or .dotm), existing documents based on that template do not automatically reflect the changes. This happens because Word stores a copy of the template styles, macros, and building blocks inside each document at the time of creation. You need a specific method to push those updates from the template into all existing documents. This article explains the two reliable ways to update documents from a modified template: using the Developer tab’s Document Template command and using the Organizer to copy styles manually.
Key Takeaways: Updating Documents From a Modified Word Template
- Developer > Document Template > Automatically update document styles: Forces Word to refresh all styles in the current document to match the attached template.
- Developer > Document Template > Attach: Re-attaches the modified template to a document that may have lost its template connection.
- Organizer (Alt+F11, F11, or via Developer tab): Copies individual styles, macros, or building blocks from the template to a document without affecting other content.
How Word Templates and Documents Stay Connected
A Word template is a master file that stores styles, formatting, macros, AutoText, and custom toolbars. When you create a new document from a template, Word copies all those elements into the document. From that point forward, the document is independent. Changing the template file does not change the document because the document already has its own copy.
To re-establish the link and update the document, you must use the Document Template command. This command is located on the Developer tab. If the Developer tab is not visible, you need to enable it first.
Prerequisites for Updating Documents From a Template
Before you start, ensure the following:
- The template file (.dotx or .dotm) is saved in a location where Word can find it. The default location is %appdata%\Microsoft\Templates, but you can use any folder.
- The template has been modified and saved. Close the template file after editing.
- The documents you want to update are closed or opened one at a time. You cannot update multiple documents in a batch without a macro.
- Enable the Developer tab: Go to File > Options > Customize Ribbon. In the right panel, check Developer and click OK.
Method 1: Use the Document Template Command to Update Styles Automatically
This method refreshes all styles in a document to match the attached template. It does not affect content, macros, or building blocks unless you specifically copy them.
- Open the document you want to update
Double-click the document file in File Explorer. The document opens in Word. - Go to the Developer tab
Click the Developer tab on the ribbon. If you do not see it, enable it using the steps in the prerequisites section above. - Click the Document Template button
In the Templates section of the Developer tab, click Document Template. The Templates and Add-ins dialog opens. - Check the Automatically update document styles box
In the Templates and Add-ins dialog, under the Templates tab, look for the checkbox labeled Automatically update document styles. Check this box. - Click OK
Word immediately applies the template styles to the document. All styles that were modified in the template now overwrite the corresponding styles in the document. - Save and close the document
Press Ctrl+S to save the updated document. Close the document.
Repeat these steps for each document you want to update. If you have many documents, consider using a macro (see Method 3).
Method 2: Use the Organizer to Copy Specific Items From the Template
Use the Organizer when you need to update only certain styles, macros, or building blocks without overwriting all styles. This method gives you fine-grained control.
- Open the document you want to update
Open the document in Word. - Open the Organizer
Go to the Developer tab and click Document Template. In the dialog, click the Organizer button at the bottom. The Organizer dialog opens. - Switch the right panel to your template
By default, the right panel shows Normal.dotm. Click Close File on the right side, then click Open File and navigate to your modified template (.dotx or .dotm). Select it and click Open. - Select the items to copy
In the left panel (your document), you see available items. In the right panel (your template), you see the modified items. Click the tab that matches what you want to copy: Styles, Macros, or Building Blocks. In the right panel, click the item you want to copy. Hold Ctrl to select multiple items. - Click Copy
Click the Copy button pointing from right to left. Word asks if you want to overwrite the existing item in the document. Click Yes to All if you are updating multiple items. - Close the Organizer
Click Close. The items are now in your document. Save the document with Ctrl+S.
Method 3: Use a Macro to Update Multiple Documents in Batch
If you need to update dozens or hundreds of documents, a macro saves time. This macro opens each document in a folder, updates styles from the attached template, saves, and closes.
- Open the Visual Basic Editor
Press Alt+F11. The VBA editor opens. - Insert a new module
In the Project Explorer, right-click Normal or your project, choose Insert > Module. - Paste the macro code
Copy and paste the following code into the module:Sub UpdateAllDocumentsFromTemplate() Dim strPath As String Dim strFile As String Dim doc As Document ' Change this path to your folder strPath = "C:\MyDocuments\" strFile = Dir(strPath & "docx") Application.ScreenUpdating = False Do While strFile <> "" Set doc = Documents.Open(strPath & strFile) doc.UpdateStylesFromTemplate doc.Save doc.Close strFile = Dir Loop Application.ScreenUpdating = True MsgBox "All documents updated." End Sub - Modify the folder path
Change the strPath line to point to the folder containing your documents. Use double backslashes. - Run the macro
Press F5 to run. Word processes every .docx file in the folder. The macro uses the UpdateStylesFromTemplate method, which does the same thing as checking the Automatically update document styles box.
Common Issues When Updating Documents From a Template
The Automatically update document styles checkbox is grayed out
This occurs when the document is not attached to any template. Click Attach in the Templates and Add-ins dialog, locate your .dotx or .dotm file, and click Open. Then the checkbox becomes available.
Styles update but some formatting does not change
Direct formatting applied manually to text overrides style formatting. The template update only changes the style definition, not manual overrides. To fix this, select the text and reapply the style from the Home tab, or use the Clear All Formatting button (Ctrl+Spacebar).
Macros from the template do not appear in the document
The Automatically update document styles option does not copy macros. You must use the Organizer to copy macros. Or, if the document is attached to the template, macros stored in the template are available as long as the template is loaded. To load a template as a global add-in, go to Developer > Document Template > Add-ins tab and add the template there.
The macro does not find any files
Check the folder path in the macro. Use a full absolute path. Make sure the file extension matches (e.g., docx for Word documents, docm for macro-enabled documents).
Automatically Update Document Styles vs Organizer: Key Differences
| Item | Automatically Update Document Styles | Organizer |
|---|---|---|
| Scope | All styles in the document | Individual styles, macros, building blocks |
| Ease of use | One click after setup | Requires manual selection per item |
| Batch capability | Per document only | Per document only |
| Macros affected | No | Yes, if copied |
| Building blocks | No | Yes, if copied |
| Overwrites existing formatting | Yes, for styled text | Only if you confirm overwrite |
You can now update documents from a modified template using the Document Template command, the Organizer, or a VBA macro. Start by testing the Automatically update document styles option on a single document to confirm the template is connected correctly. For advanced users, the VBA macro method is the most efficient for large batches. Remember that direct formatting will not be overwritten by style updates, so you may need to reapply styles manually in some cases.