Fix Word Template Macros Failing to Run on a Signed Office Installation
🔍 WiseChecker

Fix Word Template Macros Failing to Run on a Signed Office Installation

When you open a Word document or template that contains macros, the macros may fail to run even though you have enabled macros in the Trust Center. This problem commonly occurs on a signed Office installation where the template is not digitally signed by a trusted publisher or the macro security settings are configured to block unsigned macros. This article explains why macros stop running on a signed Office setup and provides step-by-step instructions to resolve the issue. You will learn how to adjust macro security settings, trust specific locations, and sign your own macros so they run without interruption.

Key Takeaways: Fixing Macros on a Signed Office Installation

  • File > Options > Trust Center > Trust Center Settings > Macro Settings > Enable all macros: Allows all macros to run, but only use temporarily for testing.
  • File > Options > Trust Center > Trust Center Settings > Trusted Locations > Add new location: Makes a specific folder a trusted location so macros in templates stored there run automatically.
  • Self-sign a macro project with a digital certificate created via Selfcert.exe: Lets you sign your own macros so they are recognized as trusted by a signed Office installation.

ADVERTISEMENT

Why Macros Fail on a Signed Office Installation

A signed Office installation is one that has been activated and verified by Microsoft or an enterprise deployment tool. In such an environment, Word applies stricter security policies to prevent unsigned or untrusted macros from running. By default, macro settings are set to Disable all macros with notification or Disable all macros except digitally signed macros. If the template containing the macros is not signed by a trusted publisher, Word blocks the macros and shows a security warning in the Message Bar.

The template itself might be stored in a location that Word does not consider trusted. Even if you manually enable macros for one session, the setting does not persist. The root cause is a combination of the default macro restriction and the lack of a trusted publisher certificate for the macro project.

How Word Determines Trust for Macros

Word checks three things before running a macro: the macro security level in the Trust Center, whether the file is in a trusted location, and whether the macro project has a valid digital signature from a trusted publisher. If any of these checks fail, the macro is blocked. A signed Office installation does not bypass these checks; it enforces them strictly.

Steps to Allow Macros in a Template on a Signed Office Installation

Use one of the following methods to fix the issue. The first method is best for testing. The second and third methods are better for long-term use.

Method 1: Change Macro Settings to Enable All Macros (Temporary)

  1. Open Word and go to File > Options
    This opens the Word Options dialog box.
  2. Select Trust Center, then click Trust Center Settings
    Trust Center Settings is a button in the right pane.
  3. Click Macro Settings in the left pane
    You see four radio button options.
  4. Select Enable all macros
    This setting allows all macros to run without prompting. Only use this for testing. Revert to a stricter setting after you confirm the macros work.
  5. Click OK twice
    Close both dialog boxes. Reopen the template and test the macros.

Method 2: Add the Template Folder as a Trusted Location

  1. Open Word and go to File > Options > Trust Center > Trust Center Settings
    Follow the same path as Method 1.
  2. Click Trusted Locations in the left pane
    A list of currently trusted folders appears.
  3. Click Add new location
    The Microsoft Office Trusted Location dialog appears.
  4. Click Browse and select the folder that contains your template
    Choose the exact folder, not a parent folder. For example, select C:\Users\YourName\Documents\Custom Templates.
  5. Check Subfolders of this location are also trusted if needed
    Enable this check box if you store templates in subfolders.
  6. Click OK three times
    Close all dialog boxes. Macros in templates stored in the selected folder now run automatically.

Method 3: Digitally Sign the Macro Project with a Self-Signed Certificate

  1. Create a self-signed certificate using Selfcert.exe
    This tool is installed with Office. On Windows 11 or Windows 10, press the Windows key, type Selfcert, and open the app. In the dialog box, type a name for your certificate, such as My Macros, and click OK.
  2. Open the template in Word and press Alt+F11
    This opens the Visual Basic for Applications (VBA) editor.
  3. In the VBA editor, go to Tools > Digital Signature
    The Digital Signature dialog opens.
  4. Click Choose, select the certificate you created, and click OK
    The certificate name appears in the dialog.
  5. Click OK to close the Digital Signature dialog
    The macro project is now signed.
  6. Save the template and reopen it
    Word recognizes the signature. Because the certificate is self-signed, you may need to add it as a trusted publisher the first time you open the file. Click Enable Content in the Message Bar when prompted.

ADVERTISEMENT

If Macros Still Do Not Run After Applying the Fix

The Message Bar Shows a Security Warning Every Time

If you used Method 2 or Method 3 and still see a security warning, the template might be stored in a location that is not truly trusted. Verify the folder path in the Trusted Locations list. Also confirm that the template file is not blocked by Windows. Right-click the template file in File Explorer, select Properties, and check the General tab. If you see a security message at the bottom, check the Unblock check box and click OK.

Macros Work for One Session but Not After Restarting Word

This behavior indicates that you manually enabled macros via the Message Bar but did not add the folder to Trusted Locations or sign the macro project. The manual enable applies only to the current session. Use Method 2 or Method 3 to make the change permanent.

A Signed Office Installation Blocks Self-Signed Certificates

Some enterprise deployments disable self-signed certificates for macros. In that case, you must obtain a certificate from a trusted certificate authority. Contact your IT department to request a code-signing certificate. Alternatively, use Method 2 (trusted location) which does not require a certificate at all.

Macro Security Methods Compared

Item Enable All Macros Trusted Location Digital Signature
Ease of setup One-click change Two clicks plus folder selection Requires Selfcert.exe and VBA editor
Security risk High – runs any macro Low – only macros in the folder run Medium – self-signed certs can be spoofed
Persistence Temporary until changed back Permanent until location removed Permanent until macro project re-signed
Works on signed Office Yes Yes Yes, if certificate is trusted

Macros in Word templates stop running on a signed Office installation when the template is not in a trusted location and the macro project is not digitally signed. You can fix this by adding the template folder to the Trusted Locations list or by signing the macro project with a self-signed certificate. For a permanent and secure solution, use the trusted location method. If you manage multiple templates, create a single trusted folder and store all templates there. This approach avoids modifying macro settings globally and keeps your Office installation secure.

ADVERTISEMENT