A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
If the file was already unblocked and Excel still shows “Microsoft has blocked macros from running because the source of this file is untrusted”, check these common causes:
- Confirm the file is truly local and on NTFS Mark of the Web applies to files saved on an NTFS file system. If the file is on a network share or opened from an internet-related location, macros can still be blocked.
- If the file is on a network share, treat the location as trusted
For files stored on an internal file server or similar location, macros can still be blocked even when no Unblock checkbox appears. In that case:
- Add the location to the Local intranet zone, or
- Designate it as a Trusted site
- Add the folder as a Trusted Location in Excel
In Excel, go to:
File > Options > Trust Center > Trust Center Settings > Trusted Locations
- Make sure trusted locations are not disabled
- Add the folder that contains the workbook
- Restart Excel
- Check macro policy settings If macro settings or organization policy are blocking macros, the file might not be allowed to run even after unblocking. In Excel: File > Options > Trust Center > Trust Center Settings > Macro Settings If macros are disabled by policy, the file cannot be made trusted in that state.
- If the file came from OneDrive or SharePoint
These options avoid Mark of the Web:
- Open the file by using Open in Desktop App
- Use the OneDrive sync client so the synced file is downloaded locally
- Download the file into a Trusted Location
- If needed, remove the ZoneId with PowerShell The file can also be unblocked with the Unblock-File cmdlet, which removes the ZoneId value. This does the same thing as the Unblock checkbox in file properties.
- Check whether the file is a template Some template files, such as .dot, .dotm, .pot, .potm, .xlt, .xltm, are handled differently and can still be affected by these protections.
A practical path is:
- Move the workbook to a local trusted folder
- Add that folder to Trusted Locations
- Reopen Excel
- If the workbook is on a network share, add that location to Local intranet instead of relying only on file unblocking