Excel blocks macros until you change one Trust Center setting, and in Microsoft 365 builds it also blocks files carrying the Mark of the Web. Enable them through File > Options > Trust Center > Trust Center Settings > Macro Settings, pick "Disable VBA macros with notification" for day-to-day work, and unblock downloaded workbooks under the file's Properties dialog before the yellow security bar will offer an Enable Content button.

Two boundaries matter from the start. Macro settings are per-user and per-app, so a change in Excel doesn't touch Word or PowerPoint, and any policy pushed by your organization's IT department overrides your local choice. If the options below are greyed out, the setting is being managed centrally.

Macros Are Disabled by Default Because VBA Runs With Your Permissions

Visual Basic for Applications is a full programming environment. A macro can read every file your account can reach, write to the registry, call Windows APIs, and download payloads from the internet. Microsoft's documented position, repeated on its macro security support pages, is that you should never enable macros in a document from an untrusted source, because the code runs with your user privileges the moment it starts.

That's why the default state in every current Excel release is macros disabled with a notification, not a prompt asking you to opt in casually. The notification is the yellow bar reading "SECURITY WARNING Macros have been disabled" with an Enable Content button, or a red bar when the file is blocked outright.

You can also bypass every warning with the lowest setting, "Enable all macros." Microsoft labels that option "not recommended; potentially dangerous code can run." Treat it as a temporary diagnostic, not a configuration. The same threat model is why .xlsm files exist as a separate extension: a file saved as .xlsx strips its VBA project entirely, so a workbook that suddenly lost its macros was probably saved in the wrong format.

One more fact shapes everything below. The Trust Center path has stayed stable across Excel 2016, 2019, 2021, and Microsoft 365 on Windows, so screenshots from an older guide usually still match. Mac Excel diverges sharply, which is why it gets its own section.

Six Ways to Reach Excel's Macro Settings

On Windows, the route is identical in every modern desktop version. Open Excel, click File in the ribbon, then Options at the bottom of the left-hand menu. In the Excel Options dialog, choose Trust Center in the left pane and click the Trust Center Settings button on the right. Select Macro Settings in the left pane of the new dialog. The four radio buttons and the "Trust access to the VBA project object model" checkbox are the controls that decide whether macros run.

Keep that dialog open for the walkthrough below. It's the only screen where macro behavior changes.

The remaining five routes exist because Microsoft anticipated that people wouldn't find the first one. Right-click the yellow security bar on an open workbook and choose Macro Security, which lands on the same panel. Use the Developer tab's Macro Security button if that tab is visible. Press Alt+F11 to open the VBA editor, then choose Tools > Macros Security. Type "macro security" into the Tell Me search box at the top of the ribbon. Or navigate to the Trust Center through Backstage view's Info pane, where the "Enable Content" dropdown exposes an advanced options link.

Route Where it starts Best for
File > Options > Trust Center Ribbon File menu First-time setup
Yellow security bar Open workbook Fixing one file fast
Developer tab > Macro Security Ribbon tab (hidden by default) People who write VBA
Alt+F11, then Tools > Macros Security VBA editor Debugging sessions
Tell Me search box Ribbon top When menus are unfamiliar
Backstage Info > Enable Content File > Info Understanding why a file is blocked

Every path ends at the same Macro Settings radio group, so none of them is faster in any meaningful sense. Choose the one you'll remember, and expect the Developer tab route to be unavailable until you tick Developer in File > Options > Customize Ribbon.

Set "Disable VBA Macros With Notification" for Everyday Use

The four settings on that panel behave very differently, and the middle one is the practical choice for almost everyone.

Pick "Disable VBA macros with notification" and Excel opens macro workbooks with the code dormant but a yellow bar offering one click to turn it on. Pick "Disable VBA macros except digitally signed macros" and only workbooks signed by a certificate in your Trusted Publishers list run, which is the right choice if you occasionally receive macro files from outside your organization. "Enable VBA macros" runs everything, with the warning Microsoft attaches. "Disable VBA macros without notification" kills silent macros but, per Microsoft's documentation, still shows notifications for Excel 4.0 macro sheets, the legacy format still used in some malware.

Notice the acronym shift. Macro Settings has said "VBA macros" since 2022; older guides and older builds say "macros." Same controls.

The checkbox beneath the radio buttons, "Trust access to the VBA project object model," is not about running macros at all. It governs whether code can reach other projects' code modules, which matters only to developers automating the editor. Leave it unchecked unless you're one of them.

The most robust alternative to loosening a global setting is a trusted location. Add a folder under Trust Center > Trusted Locations and every macro-enabled workbook saved there opens with macros running and no warning. Keep it to a path you alone control, such as C:\Macros, and never point it at Downloads.

Your new setting applies to all workbooks you open afterward. Files already open keep their current state until you reopen them.

Unblock Downloaded Workbooks Before Trusting Office's Protected View

Here's the scenario that defeats most guides. You set Macro Settings to "with notification," download a colleague's .xlsm, and the expected yellow bar never appears. The file opens in Protected View or shows a red "BLOCKED" bar instead.

The cause is the Mark of the Web, an NTFS alternate data stream that browsers and email clients attach to files from outside the local machine. Microsoft 365's trust logic treats that mark as untrusted provenance. The Enable Content button in this state only exits Protected View; it does not enable macros.

Unblock in this order. Close Protected View with Enable Editing if prompted. Open File > Info and look at the Protect Workbook dropdown; a macro file from the internet may show an "Unblock" option there. If it doesn't, close Excel, right-click the file in File Explorer, choose Properties, and tick Unblock at the bottom of the General tab, then Apply. Reopen the workbook and the standard yellow bar appears.

For an entire folder of downloaded workbooks, PowerShell's Unblock-File command processes every file in a path in one call. Test on a single file first; you're stripping a security marker from everything in the folder, including anything you didn't intend to trust.

If the red bar returns after unblocking, check whether the file is digitally signed by a publisher you haven't added under Trusted Publishers, and check whether an organizational policy is applying the stricter "block macros from the internet" rule, which Microsoft enabled by default in mid-2022 for Microsoft 365 builds.

Handle the Current Microsoft 365 Block on Internet Macros

Microsoft's 2022 change is the reason older instructions fail on current builds. When a macro-enabled file arrives from the internet and is signed by an untrusted publisher, Excel now blocks it before any yellow bar appears, and the bar you do see says "BLOCKED" in red.

The supported fix is the Properties > Unblock route described above, and Microsoft's documentation frames it as the user confirming trust deliberately. The setting that controls this behavior lives under Trust Center > Trusted Locations, where a checkbox titled "Allow Trusted Locations on my network" sits next to the security copy about disabled macros from the internet.

For a recurring sender, copy their signed workbooks into your trusted location. For one-off files from a known colleague, unblock once and move on. And note the environment rules: Windows-built-in security features like Controlled Folder Access can block macro files independently of Office settings, so a stubbornly red bar may be Windows Defender's decision rather than Excel's.

That's also why the same .xlsm can open cleanly on a colleague's PC and stay blocked on yours. The Mark of the Web travels with the file, but each machine's policy and Defender state differ. Confirm your organization's stance before overriding anything.

A Two-Minute Test That Confirms Macros Actually Run

Before blaming Excel, prove whether code executes at all with a workbook you create yourself. This takes about two minutes and removes ambiguity.

1: Press Alt+F11 to open the VBA editor and select Insert > Module. 2: Paste this into the module: Sub TestMacro() MsgBox "Macros are running." End Sub 3: Close the editor and press Alt+F8, select TestMacro, and click Run. 4: Save as Excel Macro-Enabled Workbook (.xlsm), close it, and reopen it.

A green Run and a message box confirm VBA works. Now reopen the file: if the yellow bar appears, your settings are working as configured. Save instead as .xlsx and the VBA project is discarded with a warning, which is the quickest demonstration of why file format matters.

If Alt+F8 runs nothing and the macro list is empty, macros are disabled silently, meaning someone chose "without notification." Recheck the radio group. If Run works in the editor but the yellow bar reopens disabled, the file itself is being blocked by the internet-macro rule, not by your setting.

Keep the test file. It's the fastest way to tell a settings problem from a policy problem, and you can delete the dummy module when done.

Mac Excel, Office for Mac, and the Version Differences

Excel for Mac 2016 and later replace Trust Center with a simpler dialogue. Go to Tools > Macro > Security in the menu bar, or Excel > Preferences > Security & Privacy. The options are "Disable all macros with notification," "Disable all macros without notification," "Enable all macros," and the VBA project object model checkbox. There's no "except digitally signed" option, no trusted locations in the Windows sense, and no Protected View, so downloaded files don't get the same Mark of the Web treatment.

Microsoft's support documentation lists the Mac security options as functionally equivalent but not identical, and VBA support on Mac comes with gaps: some Windows API calls and ActiveX controls fail outright, so a macro that works on Windows may compile and then error on a Mac. Version behavior also shifted across releases, with older Mac builds relying on the Tools menu and newer builds exposing the same panel.

Older Windows versions route through the same Trust Center but may lack newer labels. Excel 2010 and 2013 spend more time in Protected View for files from the internet. Excel for the web cannot run macros at all; per Microsoft's documentation, VBA stored in a workbook is preserved but never executed in the browser version, which silently breaks any automation a shared workbook depends on.

Use the Trust Center's Other Controls Before Lowering Security

Before you pick the most permissive setting, know that three other mechanisms do a better job of letting one trusted file run while keeping the rest locked down.

Digitally signed macros are the cleanest. Have the publisher sign the workbook with a certificate, add them under Trust Center > Trusted Publishers, and set Macro Settings to "Disable VBA macros except digitally signed macros." Everything untrusted stays blocked, and the signed files run without a prompt. Certificates expire, so a signature that worked last year may need renewing.

Protected View is a separate layer from macro settings. Under Trust Center > Protected View, "Enable Protected View for files originating from the Internet" is ticked by default, and turning that off removes one defense while leaving the other settings intact. Leave it on unless you have a specific reason.

File Block Settings let you hard-block a file type across the board. If your team never needs Excel 4.0 macro sheets (.xlsm with legacy XLM code), block them there and no setting loosens it.

When a trusted workbook has unheeded macros, copy it to your trusted location instead of touching the global radio buttons. Every time you change a global setting, every workbook you open later inherits it. One trusted folder doesn't.

When Enable Content Won't Appear, the Cause Is Usually Policy

Microsoft 365's "block macros from the internet" rule is enabled by default per Microsoft's documentation, and a group policy from IT can lock the radio buttons entirely. If your choices are greyed out, that's the cause.

Check Trust Center > Macro Settings: an admin can set "Disable all macros with notification" or stricter and remove your ability to change it. The only route forward is your IT department, not a registry hack.

If the choices are editable but a file stays blocked, look at the file's Properties once more. A file relayed through a messaging app that strips Zone.Identifier may behave differently from one emailed directly, which explains why identical-looking files behave differently.

An antivirus suite with an Office plug-in can also intercept macro files and block them independently of Excel. Check its logs before changing Trust Center settings.

Don't spend time hunting a setting once policy is the cause. Document what you tried and escalate. That's a five-minute conversation with IT and a two-day problem otherwise.

Why "Enable All Macros" Costs More Than It Saves

The temptation is real: one radio button removes every prompt forever. The arithmetic is unforgiving. With "Enable all macros" selected, a malicious .xlsm opens and executes at the instant you double-click it, before you see the first sheet. No yellow bar, no warning, no decision point. That's the exact behavior Microsoft spent a decade building warnings to prevent.

The time saved is trivial. A yellow-bar click costs one to two seconds per file. A macro-enabled workbook you open once a month saves roughly two seconds a month. Now price it against the worst case.

Windows, Defender, and Office add roughly 20 minutes of setup for anyone building a work-from-home machine; a compromised account in a corporate environment typically takes much longer than that to contain, with the real cost sitting in data loss, remediation labour, and potential data-protection obligations. Two seconds a month against that risk doesn't survive a sensible comparison. The same logic applies to signing macros or routing them through a trusted folder, which buys automatic trust without a global downgrade.

Leave "Enable all macros" off. If you must test something in a sandbox, use a virtual machine and revert it afterwards. Microsoft's own documentation labels the option dangerous, and that label should be enough.

FAQ

Do macros stay enabled after I change the setting?

Yes. The Macro Settings radio choice is a persistent user preference, stored in your Excel profile, and it applies to every workbook you open afterward until you change it. There's no save button; the change takes effect when you close the dialog. It's also per-user: another account on the same PC has its own setting. If the file is blocked, the block travels with the file, not the setting.

Why is Enable Content missing from the security bar?

Because Protected View or the internet-macro rule is intercepting the file before the enable prompt gets a chance to appear. Exit Protected View with Enable Editing first, then unblock the file through File > Info or File Explorer's Properties dialog. If the red bar persists after unblocking, ask whether the workbook is signed by an untrusted publisher, which Microsoft 365 blocks before any macro prompt.

What's the difference between .xlsm, .xlsb, and .xlsx?

Only .xlsm and .xlsb can store macros; .xlsx cannot. .xlsm is the standard macro-enabled workbook format, while .xlsb is a binary format that opens and saves faster with large datasets but is less interchangeable with other tools. Save as .xlsx by accident and Excel warns you that macros will be lost, and saving discards the VBA project. Always check the extension before sharing a macro workbook.

Can I enable macros in Excel for the web?

No. Excel for the web cannot run VBA macros at all. Microsoft's documentation confirms that VBA projects survive round-tripping through the web version, but other users won't see them execute in the browser. Any shared workbook that relies on a macro needs the desktop app, and you should tell collaborators before they open it online and wonder why nothing works.

What does "Trust access to the VBA project object model" actually do?

It controls whether running code can read and modify another workbook's VBA project through the object model, which self-updating macros and add-in developers sometimes need. It has nothing to do with whether your own macros execute. Leave it unticked unless you're automating VBA itself, and note that a compromised macro with this permission can rewrite other files' code.

Does a digitally signed macro still work if the certificate expired?

Not reliably. Excel verifies the certificate chain and validity period when the macro runs, and an expired certificate is treated as untrusted even if the publisher is in your Trusted Publishers list. The practical fix is to request a fresh signature from the publisher or to move the signed workbook into a trusted location while you wait, which doesn't depend on certificate validity.

Can one person's macro settings affect everyone else's?

Not directly. Macro settings live in each user's profile on each machine, so a change on yours has no effect on a colleague's. Organizational policy is the exception: a group policy applied through Entra or the Office deployment tool reaches every machine in scope and overrides local choices. If a whole team sees the same greyed-out setting, that's a managed device, not a coincidence.

Is it safe to add a folder to Trusted Locations?

Only if you control every file that can land in that folder and nothing else can write to it. A trusted location runs every macro-enabled workbook inside it without a prompt, so pointing it at Downloads defeats the purpose, since anything you download lands there. Use a dedicated path such as C:\Macros and keep its contents to files you've reviewed.