Share via

Multi Replace macro is now blocked

Kenneth Kirk 0 Reputation points
2025-11-17T05:33:54.84+00:00

I've had a macro on my MS Word for several years that allows me to replace a word across multiple documents (within one folder) at once. Suddenly today I get a message saying the macro is blocked. I went to the trust center and authorized all macros but it still won't open. Help!

Microsoft 365 and Office | Word | For business | Windows

2 answers

Sort by: Most helpful
  1. Sophie N 16,060 Reputation points Microsoft External Staff Moderator
    2025-11-17T06:06:58.62+00:00

    Dear @Kenneth Kirk,

    Thank you for reaching out to the Microsoft 365 Q&A forum community. The message you’re seeing (“Macro is blocked”) is due to recent Microsoft security changes that block macros from files originating from untrusted sources, even if “Enable all macros” is selected in the Trust Center. This is designed to protect against malicious code. 

    Please try the following steps: 

    Step 1: Unblock the file 

    • Close Word and locate the macro-enabled file in File Explorer. 
    • Right-click the file > Properties > Under Security, check Unblock > Click Apply. 

    User's image

    For detailed instructions, please refer to Microsoft’s official guide: Macros from the internet are blocked by default in Office - Microsoft 365 Apps | Microsoft Learn  

    Step 2: Add a trusted location 

    • In Word, go to File > Options > Trust Center > Trust Center Settings > Trusted Locations. 
    • Click Add new location, then select the folder where your documents and macros are stored. 

    User's image

    For step by step, please refer to Microsoft’s official guide: Add, remove, or change a trusted location in Microsoft Office - Microsoft Support 

     

    Step 3: Verify Macro settings 

    • Go to File > Options > Trust Center > Trust Center Settings > Macro Settings. 
    • Ensure the appropriate setting is selected (e.g., Enable all macros or disable all macros with notification). 

    User's image

    For detailed guidance, please refer to Microsoft’s official documentation: Enable or disable macros in Microsoft 365 files - Microsoft Support 

     

    Step 4: Restart Word 

    • After making these changes, restart Word and try running the macro again. 

    If the problem persists, check to see if your organization has a policy that blocks macros from the internet. It's possible that in an organizational environment, Group Policy may override your settings. In that case, you may need to save the file to a trusted location or contact your IT administrator. 

    I truly hope you understand that the initial steps I suggested may not have completely resolved the issue, as there might still be underlying causes, we haven't uncovered yet. Please know that I’m here with you every step of the way, ready to work together and do everything I can to help troubleshoot and find the best solution. 

    Please let me know if you have any further questions or if the problem persists after trying these solutions.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  2. AI answer

    2025-11-17T05:34:10.5466667+00:00

    It sounds like the macro you were using is being blocked due to new security settings in Microsoft Office. By default, macros from the internet are blocked to protect users from potentially harmful content. Even if you have authorized all macros in the Trust Center, there are additional steps you may need to take to allow your macro to run, especially if the file is marked as coming from the internet.

    Here are some steps you can take to unblock your macro:

    1. Remove the Mark of the Web: Right-click on the file, select Properties, and check if there is an Unblock checkbox on the General tab. If it is available, check it and click OK.
    2. Use PowerShell: You can also use the Unblock-File cmdlet in PowerShell to remove the ZoneId value from the file, which allows VBA macros to run by default.
    3. Trusted Locations: If your macro is in a file located on a network share or a trusted website, you can designate that location as a Trusted site or add it to the Local intranet zone to prevent macros from being blocked.
    4. Check Group Policy Settings: If you are in an organizational environment, ensure that Group Policy settings are not overriding your macro settings.

    If you continue to experience issues, you may want to consult your IT department or refer to the Microsoft documentation for further guidance on managing macro settings.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    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.