Excel macro settings - security risk

Morten Fly 30 Reputation points
2026-12-04T09:12:19.2466667+00:00

Excel macro setting security risk 2026-12-04

Excel macro security risk 2026-12-04

We have a (domain) computer that runs 24/7 with the same Excel program open. The program is located at a domain server (on prem) and has been running for a year. The users press a (macro) button, enter their initials, submit a very simple form, the file is saved and a display shows they have made the daily registration (ESD test). Repeat the following day.

This morning we received these warnings (see screenshots) as if something has changed. The fix was easy but why did it show?

Have Microsoft updated something that we should know about (regarding macro settings and security)?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

1 answer

Sort by: Newest
  1. AI answer

    2026-12-04T09:13:32.73+00:00

    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

    1. 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.
    2. Check whether the file carries MOTW From Command Prompt, use the workbook’s actual path:
         notepad "\\fileserver\share\Registration.xlsm:Zone.Identifier"
      
      A displayed ZoneId=3 means Internet zone; ZoneId=4 means Restricted sites. ZoneId=1 is Local intranet and ZoneId=2 is 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.
    3. 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:
      1. Excel → File → Options → Trust Center.
      2. Select Trust Center Settings → Trusted Locations.
      3. 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

    1. Macros from the internet are blocked by default in Office - Microsoft 365 Apps | Microsoft Learn
    2. Add, remove, or change a trusted location in Microsoft Office
    3. Change macro security settings in Excel | Microsoft Support
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.