Share via

blocked macros

Anthea Johnston 0 Reputation points
2026-05-06T13:42:41.01+00:00

an excell spread sheet macros have been blocked without my consent

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

1 answer

Sort by: Most helpful
  1. Marcin Policht 90,805 Reputation points MVP Volunteer Moderator
    2026-05-06T13:46:30.3866667+00:00

    This typically happens for security reasons - e.g. when the Trust Center settings are configured to disable all macros without notification, or if the file came from an external source, like the internet or email. Excel sees macros as potentially unsafe, so it prevents them from running until you explicitly allow them.

    To allow macros, you need to adjust the settings in the Trust Center. Open Excel, go to File > Options > Trust Center > Trust Center Settings > Macro Settings. Here you can choose either "Disable all macros with notification," which will prompt you to enable them when opening a file, or "Enable all macros," which will allow all macros to run without prompts. Enabling all macros is not recommended for files from untrusted sources.

    If the file is blocked because Windows marked it as coming from the internet, right-click the file in File Explorer, select Properties, and check for an "Unblock" checkbox at the bottom. If present, check it and click OK. Then reopen the file in Excel.

    You can also add trusted locations in the Trust Center. Files in these folders will run macros without prompts. Go to Trust Center Settings > Trusted Locations > Add new location and select the folder where you store your macro-enabled files.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    0 comments No comments

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.