VBA & Macro Problems

How to Fix Excel VBA Macros Blocked on Other Computers

Muhammad TalhaMuhammad Talha Oct 21, 2026 870 views

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.

How to Fix Excel VBA Macros Blocked 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.
Before you start

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.

Solution 1Recommended

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.

1
Locate the file

Open Windows File Explorer and navigate to the folder where the macro-enabled workbook is saved.

2
Open file properties

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

3
Unblock the file

In the General tab, look for a Security section at the bottom. Check the box next to 'Unblock', then click 'Apply' and 'OK'.

Unblock the File via Windows Properties
Quick Tip: Once unblocked, the file will no longer trigger the internet macro blocking security feature when opened.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Install the application: Run the installer and follow the on-screen instructions to complete the setup process.
  3. 3. Open your spreadsheet: Launch WPS Spreadsheet, click 'Open', and select your Excel workbook to continue your work seamlessly.
Fully compatible with Microsoft Excel formats including .xlsx, .xlsm, and .xlsFamiliar and intuitive user interface ensures a zero-learning-curve transitionLightweight application that opens large files quickly and runs smoothly on all devices
microsoft office alternative - wps office

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.