Unblock macro in Excel

Robinson, Mark 0 Reputation points
2026-03-17T11:36:44.1666667+00:00

I cannot enable macros to run on Excel

I have tried changing Macro Settings

Microsoft 365 and Office | Excel | Other | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-03-17T11:37:05.3233333+00:00

    Use the Trust Center to control whether macros can run, and also check that organizational policies or ActiveX settings are not blocking them.

    1. Open Excel and go to File > Options.
    2. Select Trust Center > Trust Center Settings.
    3. Select Macro Settings and choose an appropriate option, for example:
      • Disable VBA macros with notification (recommended so that macros are blocked by default but can be enabled per file), or
      • Disable VBA macros except digitally signed macros if using trusted signed macros.
      • Avoid Enable VBA macros (not recommended, potentially dangerous code can run) unless absolutely necessary, as it allows all macros to run.
    4. If the workbook uses Excel 4.0 (XLM) macros, and macros are still blocked, in the same dialog enable Enable Excel 4.0 macros when VBA macros are enabled.
    5. Select OK to save the settings.

    If macros are still blocked or the options are greyed out:

    1. The device may be managed by an organization and macro settings may be enforced by Group Policy. In that case, contact the IT administrator to adjust the policy, because Trust Center settings cannot be changed locally.
    2. If the workbook relies on ActiveX controls and they are not working, open File > Options > Trust Center > Trust Center Settings > ActiveX Settings and make sure Disable all controls without notification is not selected. A safer choice is a prompt-based option so controls can be enabled when needed.

    After changing these settings, close and reopen the workbook so the new macro settings take effect.


    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.