logo
search
VBA & Macro Problems

How to Fix Macros Not Appearing in New Word Documents from a Template

Emma BrownEmma Brown Oct 22, 2026 868 views

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.

How to Fix Macros Not Appearing in New Word Documents from a Template
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.
Before you start

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.

Solution 1Recommended

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).

1
Open the original source file

Open the document that contains the functioning macros you want to distribute.

2
Save as a .dotm template

Navigate to File > Save As. In the file format drop-down menu, select 'Word Macro-Enabled Template (*.dotm)' and save the file.

3
Create a new document from the template

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.

Save the Source File as a Macro-Enabled Template (.dotm)
How Template Macros Work: Macros stored in a template are never physically copied into the new document. Instead, the document executes them by referencing the attached template.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and download the free installation package.
  2. 2. Install and Launch: Run the installer and open WPS Writer, the word processing application.
  3. 3. Open Your Templates: Open your existing Word templates directly in WPS Writer without losing formatting or essential structure.
Outstanding compatibility with Microsoft Word formats, including .docx, .docm, and .dotm files.Lightweight installation ensures your computer runs fast and smoothly.Familiar user interface means zero learning curve for switching users.Completely free for standard daily document editing and formatting.
microsoft office alternative - wps office

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.