A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Have the domain administrator restore the file server/share to the Local intranet or Trusted sites zone—or access it by its trusted DNS host name instead of an IP address—rather than enabling all Excel macros.
The two messages are consistent: Excel has classified the workbook or its network location as untrusted, so the button’s VBA macro cannot run. A network share that is not in the Local intranet zone or Trusted sites is subject to macro blocking; this can also happen when a share is accessed by IP address.^1^
What likely changed
The screenshots do not identify exactly which setting changed. Check for one of these environmental changes:
- The workbook is now opened through
\\IP-address\share\...rather than\\server-name\share\.... - A mapped drive now resolves through a different UNC path or DNS alias.
- The server/share was removed from the Windows Local intranet or Trusted sites zone.
- A domain Group Policy affecting Office macro handling or Windows security-zone assignment changed.
- The workbook was replaced, downloaded, copied from email/web storage, or otherwise acquired Mark of the Web (MOTW) metadata.
- A previously trusted-document record was cleared or no longer applies to the current copy/path.
This is not a newly introduced 2026 global Excel change. Microsoft began rolling out the default macro block to Current Channel in Office version 2206 on July 27, 2022, and to Semi-Annual Enterprise Channel version 2208 on January 10, 2023.^1^ There is no identified Microsoft bulletin here confirming a new 2026 regression; the immediate appearance instead indicates that a trust, path, file, policy, or update-channel condition should be compared with the previous working state.
Checks to run
- Identify the exact workbook path
- In Excel, use File → Info → Copy path, or inspect the shortcut/mapped drive.
- If it contains an IP address, reopen the same file using its domain-qualified server name, for example:
\\fileserver.contoso.com\ESD\Registration.xlsm - If that works without the red banner, the difference is the Windows security-zone classification of the paths.
- Check whether the file carries MOTW From Command Prompt, use the workbook’s actual path:
A displayednotepad "\\fileserver\share\Registration.xlsm:Zone.Identifier"ZoneId=3means Internet zone;ZoneId=4means Restricted sites.ZoneId=1is Local intranet andZoneId=2is Trusted sites.^1^ If the workbook is controlled internally and its provenance has been validated, removing MOTW through File Explorer → right-click file → Properties → General → Unblock is the individual-file remedy. Do not unblock an unverified file. - Compare effective domain policy
- Ask the administrator to review the Excel macro policies under: User Configuration → Policies → Administrative Templates → Microsoft Excel 2016 → Excel Options → Security → Trust Center
- Also review the Windows security-zone assignment policy and recent GPO changes.
- Macro-policy controls are available for Microsoft 365 Apps for enterprise, but not Microsoft 365 Apps for business.^1^
Durable alternatives
If changing the zone classification is not appropriate:
- Digitally sign the VBA project and deploy/trust the publisher certificate through your organization. This is preferable when a controlled macro workbook must be used repeatedly.
- Use a narrowly scoped Trusted Location only if organizational policy permits it:
- Excel → File → Options → Trust Center.
- Select Trust Center Settings → Trusted Locations.
- Select Add new location, browse to the dedicated folder, and confirm.^2^
A Trusted Location bypasses security checks for active content, so restrict write access to that folder and do not trust the server root or a broadly writable share. Do not select Enable all macros globally; Microsoft explicitly describes that setting as not recommended because potentially dangerous code can run.^3^
References