logo
search
VBA & Macro Problems

How to Fix Word Macros Not Running with a Digital Signature

Guest WriterGuest Writer Sep 29, 2026 869 views

Question details

The user needs to successfully execute digitally signed macros in Word, but the macros are being blocked from running.

How to Fix Word Macros Not Running with a Digital Signature
Product
Microsoft Word
Device & OS
not provided
Scenario
Attempting to open and run a Word document containing VBA macros that are signed with a self-signed or untrusted digital certificate.
Observed behavior
Word blocks the macros from running due to untrusted certificates, Mark-of-the-Web (MOTW) protection, or organizational Trust Center policies.
Before you start

Before modifying macro security settings, ensure you completely trust the source of the file. If you downloaded the document from the internet, right-click the file, select Properties, and check the 'Unblock' box at the bottom to remove Mark-of-the-Web protection.

Solution 1Recommended

Add the Certificate to Trusted Publishers

Manually trust the self-signed certificate so Word recognizes the digital signature as safe for future executions.

When a macro is signed with a certificate that is not issued by a commercial Certificate Authority (like a self-signed cert), Office requires you to manually add the publisher to your trusted list before the code can run.

1
Trigger the security warning

Open the Word document containing the digitally signed macro. A yellow Message Bar will appear at the top indicating that macros have been disabled.

2
Access advanced security options

Click on the 'File' tab, then select 'Info' from the left sidebar. Look for the 'Security Warning' section and click on 'Enable Content', then select 'Advanced Options'.

3
Trust the publisher

In the Microsoft Office Security Options dialog box, select 'Trust all documents from this publisher'. Click 'OK' to save your changes and allow the macro to run.

Add the Certificate to Trusted Publishers
Certificate Validation: If you still cannot trust the publisher, you may need to export the certificate and install it into your computer's Trusted Root Certification Authorities store via the Windows Certificate Manager.
Free Microsoft Office alternative

Try WPS Office for Excellent Document and VBA Compatibility

If you frequently struggle with complex macro security blocks or expensive software licenses, consider switching to WPS Office. It provides a lightweight, intuitive environment with robust compatibility for macro-enabled document formats.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button.
  2. 2. Install the Software: Run the downloaded executable file and follow the on-screen instructions to complete the setup.
  3. 3. Open Your Documents: Launch WPS Office and directly open your existing Word, Excel, or PowerPoint files without losing formatting.
Highly compatible with Microsoft Word macro formats (.docm).Lightweight design that requires significantly fewer system resources.Free to download with a familiar user interface for seamless migration.VBA environment support available in specific professional versions.
microsoft office alternative - wps office

Frequently Asked Questions

What does it mean when a macro certificate is self-signed?

A self-signed certificate is created by the developer on their local machine rather than being issued by a recognized commercial Certificate Authority (CA). Microsoft Office blocks these by default until you manually verify and add the certificate to your computer's Trusted Publishers list.

Why are my macros still blocked after adding the certificate?

This usually happens because the file has 'Mark-of-the-Web' (MOTW) protection, which is applied by Windows when a file is downloaded from the internet. To fix this, close the file, right-click it in File Explorer, select Properties, check the 'Unblock' box on the General tab, and click Apply.

Can Group Policy override my local Trust Center settings?

Yes. If you are using a computer managed by a school or workplace, IT administrators can deploy Group Policies that strictly block all macros from running, regardless of your local Trust Center or Trusted Publisher settings. You will need to contact your IT department to make an exception.