Share via

How to fix Word not running macros that are digitally-signed?

Dunn, Matthew 60 Reputation points
2026-01-02T00:22:54.5333333+00:00

I'm using Office 2024 on Win11 (both fully updated).

I want to protect my computer from running any macros, except those I have created using VBA.

I go to TRUST CENTER.

Under MACRO SETTINGS, I enabled the option: "DISABLE ALL MACROS, EXCEPT DIGITALLY-SIGNED MACROS."

I also selected: "TRUST ACCESS TO VBA PROJECT OBJECT MODEL."

I used SelfCert.exe to create my own personal digigtally-signed certificate.

I then went into VBA: TOOLS > DIGITAL SIGNATURE. I selected the certificate that I had created and attached it to the macros.

I would have expected, then, that all my own macros which I just signed would be acceptable to Word. And, that any other macros would be disabled.

However, . . . whenever I re-start Word, I keept getting the security warning, telling me that macros have been disabled. It asks whether I want to enable.

Surely, I must have done or am doing something wrong here.

Can anyone explain why Word is NOT accepting these digitally-signed macros.

Thanks!

Microsoft 365 and Office | Word | For home | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Charles Kenyon 167.1K Reputation points Volunteer Moderator
    2026-01-02T03:49:09.3633333+00:00

    Try, instead, using Disable All Macros (with notificaton).

    These settings have titles which are misleading. Disable all macros with notification will allow you to let any macro to run and will notify you about ones that are not “trusted” before running them. Those in trusted locations will run without asking you.

    Leaving the setting as it is will still work so long as you do the rest of these instructions but will not give you the option to let a macro run anyway.

    **Set a folder (or many folders) as a Trusted Location.
    **Word will run macros in trusted locations even if you have one of the other options chosen.

    Place the template (or document) with the macros that you want to be able to run in a folder listed as a Trusted Location.

    I am a fellow user and have had commercial and self-certificates in the past. I've found that maintaining control over what is in my trusted locations is far easier than certificates.

    Sorry, I cannot explain why what you did is not working. All I can do is tell you something that I know will work.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments

  2. Q&A Assist
    2026-01-02T00:23:02.5266667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It sounds like you've taken the right steps to enable digitally-signed macros in Word, but there are a few things you might want to check to troubleshoot the issue:

    1. Trusted Publisher: Ensure that your self-signed certificate is added to the Trusted Publishers list. You can do this by going to the Trust Center, selecting Trusted Publishers, and checking if your certificate is listed there. If it's not, you may need to add it manually.
    2. Macro Settings: Double-check that your macro settings are indeed set to "Disable all macros except digitally signed macros". Sometimes, settings may revert or not save correctly.
    3. Certificate Validity: Ensure that the certificate you created using SelfCert.exe is still valid and has not expired. Self-signed certificates can sometimes have limited validity periods.
    4. VBA Project Access: You mentioned that you selected "Trust access to the VBA project object model". Ensure that this setting is still enabled after restarting Word.
    5. Document Location: If your macros are in a document that is not in a trusted location, Word may still block them. You can add the folder containing your documents to the Trusted Locations in the Trust Center.
    6. Restart Word: After making changes, make sure to completely close and restart Word for the changes to take effect.

    If you've checked all these settings and the issue persists, it may be worth testing with a different document or recreating the certificate to see if that resolves the problem.


    References:

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.