Short answer: the red SECURITY RISK bar means Office treats the file as coming from the internet or an untrusted network location, so it blocks the macros no matter what your Trust Center macro settings say. For one downloaded file, right-click it, choose Properties and tick Unblock. For macro files you run from a network drive, tick Allow Trusted Locations on my network and add the share as a Trusted Location (or have IT add the file server to the Trusted sites zone), on every computer the person uses.
An engineering consultancy asked us for help after Excel and Access macros stopped running for their director. The workbooks lived on the company file server and had worked for years. He had already set Excel to enable all macros in the Trust Center, and he had tried adding the mapped drive as a Trusted Location, only to get a second error saying network paths were not allowed. Each time we fixed it the problem came back a few weeks later. The real cause was a mix of Microsoft’s macro blocking for untrusted locations and a fix that had only been applied to one of his two computers. Here is what we found and how to fix it for good.
Fixed by Rohan Colley and Ellen Sawa-an at GCIT. Written up by Elliot Munro, CISO.
Symptoms
When you open a macro-enabled workbook, document or database, a red bar appears under the ribbon and the macro buttons do nothing:
SECURITY RISK Microsoft has blocked macros from running because the source of this file is untrusted.

Unlike the older yellow SECURITY WARNING bar, there is no Enable Content button, only Learn More. People also describe this as “Excel macros blocked”, “macros disabled after Office update”, “VBA blocked from network drive” or “security risk macros blocked even though macros are enabled”.
If you try to fix it by adding a network drive under File > Options > Trust Center > Trust Center Settings > Trusted Locations, Office may refuse with a second message:
Microsoft Office Trusted Location. The remote or network path you have entered is not allowed by your current security settings.

Affected Software
- Application: Microsoft 365 Apps on Windows (Excel, Word, PowerPoint, Access, Visio, Project and Publisher)
- Platform: Windows 10 and Windows 11, including Remote Desktop servers
- Related Services: Windows internet security zones, Group Policy or Intune, file servers and mapped drives
Cause
Since 2022 Microsoft blocks VBA macros by default in any Office file it considers to be from the internet. Windows marks downloaded files and email attachments with a hidden tag called the Mark of the Web. Files opened from a network share can be treated the same way if the share is not in the Local intranet or Trusted sites zone, for example when it is opened by IP address or by a server name Windows does not recognise as internal.
This check happens before Office looks at your Trust Center macro settings. That is why setting Enable VBA macros makes no difference:

Office only skips the block if the file is in a Trusted Location, is signed by a trusted publisher, or no longer carries the Mark of the Web. Network folders are not allowed as Trusted Locations unless Allow Trusted Locations on my network is ticked, which is off by default. That is what triggers the “remote or network path” error.
In the case above, the share root had been trusted on the director’s main laptop months earlier, but his second computer had no Trusted Locations at all. Access also keeps its own Trusted Locations list, separate from Excel. Each time he used the other device or app, the macros were blocked again.
Resolution
For a single file you downloaded or received by email
- Close the file.
- Only continue if you trust the sender and expected a macro file.
- Right-click the file in File Explorer and select Properties.
- On the General tab, tick Unblock next to the security message, then select OK.
- Open the file again. The macros will now follow your normal macro settings.
If there is no Unblock checkbox, the file is probably on a network share. Use one of the next two methods.
For macro files on a network drive (per user)
- In Excel, go to File > Options > Trust Center > Trust Center Settings > Trusted Locations.
- Tick Allow Trusted Locations on my network (not recommended). Do this first, or the next step fails with the “remote or network path” error.
- Select Add new location and enter the share path, for example
\\fileserver\Projects\. Using the full UNC path is more reliable than a mapped drive letter. - Tick Subfolders of this location are also trusted if the macro files sit in project subfolders, then select OK.
- Repeat for each share root that holds macro files.
- If you use Access macros, repeat the same steps in Access. Its Trusted Locations list is separate from Excel’s.
- Restart Excel and test.
- Repeat on every computer and Remote Desktop server the person signs in to. Trusted Locations are stored per user, per device.
For IT administrators (all users)
- Microsoft’s preferred option is to add the file server to the Trusted sites zone (or confirm it is in the Local intranet zone) using the Group Policy setting Site to Zone Assignment List, under Windows Components\Internet Explorer\Internet Control Panel\Security Page. Intune can deploy the same setting. Clear “Require server verification (https:)” for that zone so a
file://share can be added. - If you prefer Trusted Locations, deploy them with the Office administrative templates (Excel Options\Security\Trust Center\Trusted Locations), including Allow Trusted Locations on the network. In one case the policy appeared but did not apply to Excel until the registry value was set directly, so check the result on a test machine with
gpresultand by reopening the file. - Have users open the file by its normal server name, not by IP address, so Windows recognises the zone.
- If macros are still blocked, check Microsoft Defender Attack Surface Reduction rules and any application control software. These can block macros independently of Office, as covered in our ASR article.
For reports downloaded from a business system
If a finance, ERP or reporting system exports macro workbooks to your Downloads folder, each download gets the Mark of the Web. A common fix is to save those exports to a dedicated local folder, such as C:\Reports, and add that folder as a Trusted Location. Keep that folder for those reports only.
For CaseWare Cloud workpapers on remote desktops
Workbooks opened from CaseWare Cloud come from a web address, so Office treats them as internet files and blocks their macros with the same red bar, even with the Caseware Cloud Connector loaded in Excel.
![]()
The fix is to put the CaseWare Cloud address for your region, for example https://au.casewarecloud.com, in the Trusted Sites zone (zone 2) with the Site to Zone Assignment List policy. On one PC an administrator can set it in Group Policy under Computer Configuration > Administrative Templates > Windows Components > Internet Explorer > Internet Control Panel > Security Page.

At an accounting firm, this kept coming back for one accountant. Ellen Sawa-an added the trusted site, but the accountant worked on a pool of Azure Virtual Desktop hosts that are rebuilt from time to time, so the setting only existed on some of them. Kenn Cruz confirmed the gap was in the hosts, not the user’s profile, and Ryan Colombo fixed it for good by adding the CaseWare Cloud address to the firm’s Intune policy for site to zone assignment, which applies to every current and future host. If your staff use pooled remote desktops, set this in Intune or Group Policy for the whole pool, never on one host at a time. Staff need to sign out fully and back in to pick it up.
Important Notes
- Do not set every macro to run. Selecting “Enable VBA macros” in the Trust Center lowers your protection and still does not lift this block. Trust the specific location instead.
- A trusted location is trusted for everything in it. Any macro file saved there runs without warning, so only trust shares where write access is controlled.
- Fix every device. If the problem keeps coming back, check whether the person uses a second laptop, a Remote Desktop server or Access as well as Excel.
- Mac and web are not affected. This default block applies to Office on Windows only.
- Files from OneDrive and SharePoint. Files opened with Open in Desktop App or synced by the OneDrive app do not get the Mark of the Web. Files downloaded through the browser usually do.
Related Resources
- Microsoft Learn: Macros from the internet are blocked by default in Office
- Microsoft Support: A potentially dangerous macro has been blocked
- Microsoft Learn: Trusted Locations for Office files
- Fix: Excel 97-2003 Files Blocked by Attack Surface Reduction (ASR) Rules
- Fix: “#NAME?” Errors in Excel (SmartWorkpapers Add-in)
- Fix: Caseware Cloud Connector “We Couldn’t Upgrade This App”
- Excel 2016 stuck on Opening in Protected View
- Microsoft 365 support from GCIT
- GCIT Essential Eight compliance
- Fix: “Automatic Update of Links Has Been Disabled” in Excel
If macro files keep getting blocked across your team, book a free consultation and we will set up trusted locations safely for every device.