How to Fix Macros Not Appearing in New Word Documents from a Template
Question details
Users report that when creating a new Word document from a macro-enabled file, the macros do not appear in the new document's macro list unless the VBA code is manually edited and saved.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Creating a new document based on a macro-enabled template and attempting to run the stored macros.
- Observed behavior
- The macro list is empty in the newly created document, giving the impression that the macros were not copied over from the template.
Ensure that your macro security settings are configured to enable macros, and verify that the source document actually contains the VBA code you intend to use.
Save the Source File as a Macro-Enabled Template (.dotm)
Macros are not copied directly into new documents; instead, the document retains a link to the template. Saving the source as a .dotm file ensures this link works correctly.
When you use a standard macro-enabled document (.docm) as a makeshift template, new documents generated from it do not properly inherit or link to the macros. To ensure macros are accessible, the source file must be saved in the dedicated Word Macro-Enabled Template format (.dotm).
Open the document that contains the functioning macros you want to distribute.
Navigate to File > Save As. In the file format drop-down menu, select 'Word Macro-Enabled Template (*.dotm)' and save the file.
Go to File > New, select your newly created .dotm template, and create the document. The new document will now maintain an active link to the macros stored in the template.

Adjust the 'Macros in' Drop-down List
If the macros are successfully linked to the template but still not visible, you may need to change the filter in the Macros dialog box.
Configure Workgroup Templates for Shared Network Use
If multiple users need access to the same macro-enabled template, configure the Workgroup Templates setting to point to a shared network folder.
Experience Seamless Document Editing with WPS Office
If managing complex template linkages and macro configurations in Microsoft Word is slowing you down, consider switching to WPS Office. It provides a highly compatible, lightweight, and user-friendly alternative for all your document processing needs.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package.
- 2. Install and Launch: Run the installer and open WPS Writer, the word processing application.
- 3. Open Your Templates: Open your existing Word templates directly in WPS Writer without losing formatting or essential structure.

Frequently Asked Questions
Why aren't macros copied directly into my new document?
By design, when you create a new document from a macro-enabled template (.dotm), the application links the document to the template rather than copying the VBA code. This approach keeps individual document file sizes small, prevents macro duplication, and allows administrators to update the code in one central location.
Can I make a macro available to all documents created from a template?
Yes. You can assign the macro to a custom Quick Access Toolbar button or a keyboard shortcut, and choose to save that customization specifically within the .dotm template. Any document subsequently created from that template will inherit the button and shortcut.
What is the difference between a .docm and a .dotm file?
A .docm file is a standard macro-enabled document intended for direct editing and single use. A .dotm file is a macro-enabled template designed to serve as a foundational blueprint. It is meant to be used via 'File > New' to spawn multiple new documents that share its styles, formatting, and linked macros.




