Why Microsoft Office Blocks VBA Macros from Internet Files and How to Fix It
Question details
Users are experiencing issues where VBA macros in files downloaded from the internet are automatically blocked by Microsoft Office, preventing automated scripts from executing.

- Product
- Microsoft Office (Excel, Word, PowerPoint, Access, Visio)
- Device & OS
- Windows
- Scenario
- Opening a macro-enabled file that was downloaded from the internet or received as an email attachment.
- Observed behavior
- Microsoft Office completely blocks the VBA macros from running and displays a security warning indicating the source is untrusted, disrupting normal workflows.
Ensure the macro-enabled file is from a completely trusted and verified source, as enabling macros from unknown senders can expose your computer to severe malware and ransomware.
Unblock Macros for a Specific Trusted File
Use this method if you have downloaded a single macro-enabled file from a trusted source and need to run its macros safely without changing global settings.
By default, Windows adds a 'Mark of the Web' to files downloaded from the internet. Removing this mark from a specific file tells Office that you explicitly trust it.
Open Windows File Explorer and navigate to the folder where the macro-enabled file (e.g., .xlsm, .docm) is saved.
Right-click on the file and select 'Properties' from the context menu.
On the 'General' tab, look for a 'Security' section at the bottom. Check the box that says 'Unblock' and click 'Apply', followed by 'OK'.

Add a Network Share or Folder to Trusted Locations
Ideal for businesses that regularly share legitimate macro-enabled templates from a specific internal server or trusted local folder.
Edit Macro-Enabled Documents Seamlessly with WPS Office
If strict macro blocking policies disrupt your small business workflow, consider WPS Office. It provides a highly compatible, lightweight alternative for handling your daily document and spreadsheet tasks.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for Windows.
- 2. Install the software: Run the installer and follow the straightforward on-screen prompts to set up WPS Office on your computer.
- 3. Open your macro file: Launch WPS Spreadsheets or Writer and open your downloaded file. Ensure you enable macros when prompted only if you trust the file's source.

Frequently Asked Questions
Why did Microsoft change the default macro security policy?
Microsoft changed the default policy to block macros in files originating from the internet to protect users against malicious scripts, ransomware, and malware that are frequently distributed via email attachments and deceptive downloads.
Can I globally enable all macros for downloaded files?
It is highly discouraged to globally enable all macros, as it completely removes your system's defense against macro-based malware. Instead, administrators recommend unblocking individual trusted files or using the Trusted Locations feature.
Does this blocking policy apply to files shared on my company network?
If the network share is treated as an 'Internet' or 'Restricted' zone by Windows, macros will be blocked. To resolve this, administrators can configure Group Policies to map specific internal network shares as Trusted Locations.
Will applying digital signatures allow the macros to run?
Yes, if a macro is signed with a valid digital certificate from a Trusted Publisher, Office will typically allow the macro to run securely, even if the file was originally downloaded from the internet.




