How to Fix Excel VBA Macros Blocked on Other Computers
Question details
The user needs to resolve an issue where Excel VBA macros run successfully on their local machine but are blocked when the file is opened on other computers.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Opening a macro-enabled workbook that was transferred from another computer or downloaded from the internet/network.
- Observed behavior
- Excel prevents the VBA macros from running due to security restrictions applied to files from untrusted locations or the internet.
Verify that the workbook is saved in the .xlsm format and confirm that you completely trust the source of the file before attempting to enable macros.
Unblock the File via Windows Properties
This is the most direct way to allow macros to run for a specific file that was transferred from another computer or downloaded from the internet.
Windows applies a 'Mark of the Web' to files originating from another computer or the internet. By default, Office blocks macros in these files for security reasons.
Open Windows File Explorer and navigate to the folder where the macro-enabled workbook is saved.
Right-click on the Excel file and select 'Properties' from the context menu.
In the General tab, look for a Security section at the bottom. Check the box next to 'Unblock', then click 'Apply' and 'OK'.

Save the File in a Trusted Location
Move the workbook to a folder designated as safe by Excel to bypass the macro blocking restrictions.
Verify Organizational Security Policies
If macros are still blocked, your organization's IT department may have implemented strict group policies disabling them entirely.
Use WPS Office as a Seamless Alternative for Your Spreadsheets
If Microsoft Excel's strict security policies and macro blocking features are disrupting your daily workflow, consider switching to WPS Office. It provides robust spreadsheet capabilities, excellent compatibility with Excel formats, and a familiar interface without the heavy resource usage.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Install the application: Run the installer and follow the on-screen instructions to complete the setup process.
- 3. Open your spreadsheet: Launch WPS Spreadsheet, click 'Open', and select your Excel workbook to continue your work seamlessly.

Frequently Asked Questions
Why does Excel block macros from the internet by default?
Microsoft blocks macros from internet sources to protect users from malicious scripts and malware commonly distributed via downloaded Office files.
Is it safe to unblock a macro-enabled workbook?
You should only unblock workbooks if you completely trust the sender and the source of the file. Malicious macros can easily compromise your computer and steal sensitive data.
How do I know if my Excel file contains macros?
In modern Excel versions, macro-enabled workbooks have the specific file extension .xlsm, distinguishing them from the standard .xlsx extension used for macro-free workbooks.




