How to Unblock Excel Macro Files on a Network Share
Question details
Users are unable to run macros in Excel files that are stored on network shares because Microsoft Office blocks them for security reasons.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Opening and attempting to run macro-enabled Excel files stored on a network drive or shared folder.
- Observed behavior
- Office treats the network location as an untrusted or internet source, blocking the macros from running.
Verify that you have the correct network path (UNC path) to the shared folder and confirm with your IT administrator that the network share is a trusted source.
Add the Network Share to Excel Trusted Locations
Configure Excel's Trust Center to recognize the specific network share as a secure environment.
By default, Excel treats network paths as potentially unsafe. Adding your organization's verified network share to the Trusted Locations list allows macros to run normally without disabling overall security.
Launch Microsoft Excel, click on the 'File' menu, and select 'Options' at the bottom of the left sidebar.
Click on 'Trust Center' in the left pane, then click the 'Trust Center Settings' button.
Select 'Trusted Locations' from the left menu and check the box that says 'Allow Trusted Locations on my network (not recommended)'.
Click 'Add new location', enter the network UNC path (e.g., \\server\share), check 'Subfolders of this location are also trusted', and click 'OK'.
Add the Network Path to the Local Intranet Zone
If accessing the share via IP address, Windows may treat it as an internet zone. Adding it to the Local Intranet zone resolves this.
Try WPS Office for Seamless Macro Compatibility
If Microsoft Office's strict security settings persistently block your workflow on network files, consider switching to WPS Office. It provides a lightweight, highly compatible environment for your macro-enabled spreadsheets with easy-to-manage security options.
- 1. Download WPS Office: Get the free installer from the official WPS website and complete the installation.
- 2. Open the Network File: Launch WPS Spreadsheets, navigate to your network share, and open your macro-enabled file.
- 3. Enable Macros: Follow the prompt at the top of the screen to enable macros safely for your session.

Frequently Asked Questions
Why does Excel block macros on a network share by default?
Excel employs strict security protocols to prevent malicious code execution. It often treats network locations, especially those accessed via IP address, as internet sources, triggering the 'Mark of the Web' security feature which blocks macros.
What is a UNC path and why should I use it?
A UNC (Universal Naming Convention) path identifies network resources using a specific format like \\server-name\shared-folder. Using consistent UNC paths instead of mapped drive letters or IP addresses helps Excel reliably identify and trust network locations.
Can I just enable all macros in the Trust Center to fix this?
It is highly discouraged to enable all macros, as this exposes your computer and network to potentially dangerous malware. You should only configure specific trusted locations or Local Intranet zones.
Do I need admin privileges to unblock network macros?
Yes, in many organizations, modifying Trusted Locations, Internet Options, or Group Policies requires IT administrator privileges to ensure compliance with company security standards.




