logo
search
VBA & Macro Problems

How to Fix Excel Macros Blocked Even When Enabled in Settings

Maira MehtabMaira Mehtab Sep 21, 2026 869 views

Question details

The user needs to execute macros in an Excel workbook, but the macros remain blocked despite macro settings being explicitly enabled in the software.

Product
Microsoft Excel
Device & OS
Windows
Scenario
Opening an Excel workbook containing macros that was downloaded from the internet or received as an email attachment.
Observed behavior
Macros are restricted from running due to a Windows security feature, overriding the user's manual preference to enable macros in Excel settings.
Before you start

Verify that the downloaded file or email attachment comes from a completely trusted source, as unblocking and running macros in unsafe workbooks can expose your computer to malware.

Solution 1Recommended

Unblock the File in Windows File Explorer Properties

Manually remove the security block applied by Windows to files originating from external sources before opening them in Excel.

Windows applies a 'Mark of the Web' to files downloaded from the internet or received via email. This overrides Excel's Trust Center settings and blocks macros by default until you manually verify the file is safe.

1
Close the Excel File

Ensure that the blocked workbook is completely closed in Microsoft Excel before proceeding.

2
Open File Explorer

Navigate to the folder on your computer where the downloaded workbook or saved email attachment is located.

3
Access File Properties

Right-click the Excel file and select 'Properties' from the context menu.

4
Check the Unblock Option

In the General tab, look for a Security section at the bottom. Check the box labeled 'Unblock', then click 'Apply' followed by 'OK'.

5
Reopen and Test

Launch Microsoft Excel, open the workbook, and test your macros to confirm they now run successfully.

Unblock Option Missing?: If you do not see the 'Unblock' checkbox in the Properties window, the file is not currently restricted by Windows' Mark of the Web feature.
Free Microsoft Office alternative

Seamlessly Open and Edit Spreadsheets with WPS Office

If you are frustrated by complicated security restrictions and blocked macros in Microsoft Excel, consider trying WPS Office. It provides a lightweight, highly compatible alternative for managing your spreadsheets with an interface you already know.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your computer.
  2. 2. Launch WPS Spreadsheets: Open WPS Office and select the Spreadsheets module from the main dashboard.
  3. 3. Open Your Workbook: Click 'Open' and browse for your spreadsheet to immediately start viewing and editing your data.
Fully compatible with Microsoft Excel file formats, including .xlsx, .xlsm, and .csv.Lightweight installation with fast startup and loading speeds.Familiar spreadsheet interface that requires zero learning curve.Free to download and use for your daily office tasks.
QA img-10

Frequently Asked Questions

Why does Excel block macros even when enabled in the Trust Center?

Microsoft recently updated its security policies to automatically block macros in files that originate from the internet or email attachments (an invisible tag known as the 'Mark of the Web'). This operating system-level block overrides your local Excel Trust Center settings to protect you from malware.

What is the 'Unblock' option in File Explorer?

The 'Unblock' checkbox is a Windows feature that removes the 'Mark of the Web' from a downloaded file. Checking it tells the operating system and Microsoft Office that you explicitly trust the file and it is safe to execute its embedded macros.

Can I automatically unblock macros for all downloaded files?

While you cannot disable the Windows Mark of the Web globally due to severe security risks, you can set up a 'Trusted Location' in Excel's Trust Center. Any file saved into or moved to that specific folder will automatically bypass the macro block.

What should I do if the 'Unblock' checkbox is missing in Properties?

If the 'Unblock' option is not visible, the file is not blocked by Windows. If macros still do not run, double-check that your Excel Trust Center macro settings are actually enabled, or verify that the VBA code itself does not contain errors.