Excel Macro Security Settings Explained (And What to Set After Migration)

January 25, 2026 · 5 min read

Excel's macro security settings determine whether VBA code runs when a workbook opens. After migrating from .xls to .xlsm, users may encounter macro warnings or disabled macros that didn't appear before. Here's what the settings mean and how to configure them correctly.

The Four Macro Security Settings

Found at: File > Options > Trust Center > Trust Center Settings > Macro Settings

SettingWhat It DoesWhen to Use
Disable all macros without notificationMacros silently blocked — no prompt, no yellow barHigh-security environments only; most users shouldn't use this
Disable all macros with notificationYellow bar appears asking to enable macrosDefault for most users — good balance of security and usability
Disable all macros except digitally signedOnly macros with a valid code-signing certificate run automaticallyEnterprise environments with a code signing infrastructure
Enable all macrosAll macros run without promptsOnly for isolated development machines — not production

The recommended setting for most users is "Disable all macros with notification." This is secure (unsigned macros don't run automatically) but usable (you see a prompt and can choose to enable).

The Yellow Bar: Enable Content

When Excel shows a yellow bar with "Enable Content," it's telling you a macro-containing file is present and asking for permission. Click Enable Content to allow macros for that session.

If you're tired of seeing this bar every time you open a trusted internal file, the solution is Trusted Locations — not disabling macro security entirely.

Trusted Locations

A Trusted Location is a folder (or network path) where Excel automatically allows macros to run without the yellow bar prompt. Any file opened from a Trusted Location is treated as safe.

To add a Trusted Location: File > Options > Trust Center > Trust Center Settings > Trusted Locations > Add new location.

For network paths, check "Subfolders of this location are also trusted" and check "Network locations can be used as trusted locations" (disabled by default).

After migration: If your .xls files were in a folder users trusted, add the equivalent folder with .xlsm files as a new Trusted Location.

Mark of the Web (MOTW) — The Windows 11 Complication

Windows 11 applies a "Mark of the Web" flag to files downloaded from the internet, email, or certain network shares. Even if your Trust Center settings allow macros, a file with MOTW will be blocked by Windows itself.

The fix: right-click the file > Properties > check Unblock. Or, for files stored on a network share, add that share to Internet Explorer's (or Edge's) Trusted Sites zone — this removes MOTW from files accessed from that location.

Group Policy for IT Administrators

For organizations managing Excel settings across many machines, macro security settings can be enforced via Group Policy (ADMX templates for Microsoft 365 are available from Microsoft). This allows IT to set a consistent security baseline without per-user configuration.

Key GPO settings: User Configuration > Administrative Templates > Microsoft Excel 2016 > Excel Options > Security > Trust Center

Macros still blocked after configuring settings?

LegacyLeaps's scan report identifies Mark of the Web flags and Trust Center issues alongside VBA compatibility problems — one report, all issues visible.

Run Free Scan

Related Resources

Get tips like this in your inbox

Practical fixes for legacy Excel and Access problems. No spam.

← Back to all posts