A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Use one of these supported approaches:
- Add a specific folder, not the network root. In Excel, go to File > Options > Trust Center > Trust Center Settings > Trusted Locations > Add new location. Then select a specific subfolder on the share. Office can reject a broad path such as a server root or share root for security reasons.
- If the file is on a network share and Excel still blocks macros, use the network-location approaches for files you trust:
- Add the location to Trusted sites
- If it is an intranet location, add it to the Local intranet zone
- If the file was downloaded and carries Mark of the Web, remove that from a local copy:
- In File Explorer, right-click the file > Properties
- On the General tab, select Unblock if it appears
- If there is no Unblock checkbox for the network copy, copy the file to a local folder, open or save it locally, then save it back to the network location
- If the file is only needed by one user, the safest option is to keep it in a local trusted location instead of a network trusted location. Microsoft recommends local trusted locations by default and says network trusted locations are not recommended.
Important security note: files in a Trusted Location bypass security checks, including Protected View and some validation checks, and active content such as VBA macros is enabled. Only trust locations that are tightly controlled.
- Add, remove, or change a trusted location in Microsoft Office | Microsoft Support
- Trusted Locations for Office files
- Trusted Locations for Office files
- Macros from the internet are blocked by default in Office
- Macros from the internet are blocked by default in Office
- SOLVED - Excel 21 stating "Microsoft has blocked macros from running because the source of this file is untrusted." for a network file - Microsoft Q&A