How to Unblock Excel Files So Macros Are Not Blocked by Windows

Updated 2026 • 6 min read

Are you getting the error “Microsoft has blocked macros from running” when opening Excel files?

This problem often occurs after downloading Excel files from the internet. Windows automatically blocks macros for security reasons. Here's how to unblock Excel files so that macros can run again.


Why are Excel macros blocked?

Windows uses a security system called Mark of the Web (MOTW). Every downloaded file is given a special mark so that macros are not immediately activated.

The purpose of this is to protect users from viruses or malicious scripts.

How to Unblock Excel Files in Windows 10 & 11

  1. Right-click on the downloaded Excel file.
  2. Select Properties.
  3. At the bottom, find the Unblock option.
  4. Check Unblock.
  5. Click Apply then OK.
Unblock Excel File

After Unblocking, What Next?

Reopen the Excel file, then click:

Enable Macro Excel

If Enable Macro Does Not Appear

If the Enable Content button still does not appear:


Is it safe to enable macros?

It is safe if the file comes from a trusted source. Do not enable macros from unknown files.


Conclusion

Unblocking Excel files is very easy and only needs to be done once. With this step, macros can run normally without security errors.

Related Articles