How to Safely Unblock Excel Macros from the Internet
Question details
The user needs to safely unblock and enable Excel macros in workbooks that have been downloaded from the internet or received via email.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user or administrator wants to manage macro security settings for workbooks sourced from external locations while maintaining system safety.
- Observed behavior
- Excel automatically blocks macros in downloaded files to prevent malicious code execution, requiring manual unblocking or organization-wide policy adjustments to function.
Ensure you completely trust the source of the Excel file before attempting to unblock its macros, as running unverified code can expose your computer to severe security threats.
Unblock a Specific Trusted File via Properties
Use this method to unblock macros for an individual file that you have verified is safe and from a trusted source.
Windows attaches a 'Mark of the Web' to files downloaded from the internet or received as email attachments. You can manually remove this mark in the file's properties to allow macros to run.
Ensure the downloaded Excel workbook is completely closed before modifying its properties.
Locate the downloaded file in Windows File Explorer, right-click on the file, and select 'Properties' from the context menu.
On the General tab, look for the 'Security' section at the bottom. Check the box that says 'Unblock', then click 'Apply' followed by 'OK'.

Use Trusted Publishers and Digital Signatures
Ideal for developers and organizations distributing macro-enabled workbooks to multiple users securely.
Try WPS Office for a Seamless Spreadsheet Experience
If you are looking for a secure, lightweight, and cost-effective alternative to Microsoft Office, WPS Office provides an intuitive spreadsheet tool with excellent format compatibility and familiar UI design.
- 1. Download the software: Visit the official WPS Office website and download the free installation package.
- 2. Install WPS Office: Run the downloaded installer and follow the on-screen prompts to complete the setup on your device.
- 3. Open your spreadsheets: Launch WPS Spreadsheets and open your existing Excel files to continue your work without formatting loss.

Frequently Asked Questions
Why does Excel automatically block my downloaded macros?
Excel uses a security feature called Mark of the Web (MotW) to identify files originating from the internet or email attachments. It blocks macros in these files by default to protect your computer from potentially malicious code and ransomware.
Can I globally disable macro blocking for internet files?
It is highly discouraged to globally bypass macro protection due to severe security risks. However, IT administrators can manage these behaviors at a network level using Microsoft 365 Group Policies and Trusted Locations.
How can I run a macro if my IT administrator has disabled the Unblock option?
If your organization prevents you from unblocking files via File Properties, you will need to save the file in a designated 'Trusted Location' set up by your IT department, or request that the file's author digitally signs the macro using a trusted publisher certificate.
Are digital signatures required for all macros?
While not strictly required for personal scripts you create on your own machine, digital signatures are highly recommended when distributing macros within an organization. They verify the developer's identity and ensure the code has not been tampered with in transit.




