Enable Office macros in 2026: yellow vs red warnings, Mark of the Web fixes

To enable Office macros, select Enable Content on the yellow Security Warning bar, or, if a red Security Risk banner appears, right-click the file, open Properties and tick Unblock to remove Mark of the Web.

This guide explains both warnings, Trust Center macro settings, Trusted Locations, trusted publishers, OneDrive and SharePoint files, and what to do when an administrator has blocked macros.

Enable Office Macros in 2026: Yellow vs Red Warnings, Mark of the Web Fixes
Files with Mark of the Web pass trusted location, signature and policy checks before Office shows the Security Risk bar. (Image: Microsoft)

Enable macros in an Office file from the red Security Risk banner

Use this route only for a file you expected and whose sender you trust. You do not need macros just to read or edit a document.

  1. Close the file in Word, Excel or PowerPoint.
  2. Open File Explorer and go to the folder where the file is saved.
  3. Right-click the file and choose Properties.
  4. On the General tab, select the Unblock checkbox at the bottom.
  5. Select OK, then open the file again.
  6. If the yellow bar now appears, select Enable Content.

Microsoft turned macro enablement into a provenance test

Office now decides whether macros run by checking where a file came from before it checks your preferences. Microsoft documents this order for Access, Excel, PowerPoint, Project, Publisher, Visio and Word on Windows.

Check, in order What happens if it passes
File sits in a Trusted Location Opens with macros enabled
Macros are signed and the publisher certificate is trusted Opens with macros enabled
Policy blocks or enables macros Policy decides; Not Configured moves to the next check
File was trusted with Enable Content before the change Macros run because it is a Trusted Document
File carries Mark of the Web from the internet Macros are blocked and the Security Risk banner appears

The change reached Current Channel in Version 2206 from July 2022 and Semi-Annual Enterprise Channel in Version 2208 in January 2023, so check your Office version and updates if the banner behaves differently.

Yellow vs red macro warning in Office

What you see What it means What to do
Yellow SECURITY WARNING bar with Enable Content Macros are disabled by your Trust Center setting Select Enable Content if you trust the file
Red SECURITY RISK banner: Microsoft has blocked macros because the source of the file is untrusted The file has Mark of the Web from the internet Remove Mark of the Web with Unblock
Red banner: Your administrator has restricted the use of macros in your organization An IT policy blocks macros Save the file to OneDrive or another approved location, or ask IT

The yellow bar is the old world, and it still exists

The yellow bar appears for files without Mark of the Web when Trust Center is set to Disable all macros with notification, the default.

  1. Open the file and look for the yellow SECURITY WARNING bar under the ribbon.
  2. Select Enable Content.
  3. In the Security Warning dialog, select Yes to make the document trusted.
  4. Run the macro from View > Macros or the button the file provides.

A Trusted Document keeps running macros on later opens. To revoke it, clear all trusted documents in Trust Center.

Enable Office macros from the Trusted Document security warning for a network file
Choosing Yes marks the file as a Trusted Document, so the prompt does not return for that file. (Image: Microsoft)

The red banner is Windows speaking through Office

Windows adds Mark of the Web to files that arrive from the Internet or Restricted sites zones, such as browser downloads and email attachments. It applies only on NTFS drives, not FAT32.

ZoneId value Zone Macros blocked by default?
0 My Computer No
1 Local intranet No
2 Trusted sites No
3 Internet Yes
4 Restricted sites Yes

The Security Risk banner has no Enable Content button. Removing the mark is the only per-file fix.

Remove Mark of the Web with PowerShell Unblock-File

The Unblock-File cmdlet removes the ZoneId value, which does the same thing as the Unblock checkbox. Replace the path with your own file; you can copy the full file path from File Explorer.

Unblock-File -Path "C:\Users\<you>\Downloads\report.xlsm"

Deletes the Zone.Identifier stream that marks the file as coming from the internet.

You should see: The command returns no output, and the file opens with the yellow bar or runs macros instead of showing the red banner.

OneDrive and SharePoint are safer when they stay in the Microsoft path

A browser download from OneDrive or SharePoint can pick up Mark of the Web, while files opened in the desktop app or synced by the OneDrive client do not.

  1. Open the file on the OneDrive website or the SharePoint or Teams site.
  2. Select Open in Desktop App instead of Download.
  3. If you already downloaded a copy, unblock that local copy or delete it and reopen from the site.
  4. For an email attachment, save it to OneDrive before opening it.

Files in Desktop, Documents, Pictures, Screenshots and Camera Roll that sync to OneDrive carry no Mark of the Web.

Office macros from SharePoint added to the Trusted sites zone list
Type the SharePoint or file share address in Add this website to the zone, then click Add. (Image: Microsoft)

Trust Center is per-app, which is sensible and annoying

Open File > Options > Trust Center > Trust Center Settings > Macro Settings. A change applies only to the app you are using, so set Word and Excel separately.

Option Effect Use it when
Disable all macros without notification Macros and alerts are off You never use macros
Disable all macros with notification Macros off, yellow bar offered Default; decide file by file
Disable all macros except digitally signed macros Only trusted-publisher macros run Your macros come signed
Enable all macros (not recommended) Every macro runs without asking Avoid on any everyday PC

None of these settings overrides the Mark of the Web block on internet files.

Office Trust Center macro settings with Disable all macros with notification selected
Disable all macros with notification is the default; Enable all macros is marked not recommended. (Image: Microsoft)

Excel gets a shortcut, not a loophole

Excel labels its options Disable VBA macros with notification and so on, because they cover VBA only. It also has an Enable Excel 4.0 macros when VBA macros are enabled checkbox for XLM macros.

  1. Show the Developer tab on the ribbon if it is hidden.
  2. Select Developer > Macro Security to jump straight to Macro Settings.
  3. Choose the VBA option you want.
  4. Leave Enable Excel 4.0 macros when VBA macros are enabled cleared unless an old workbook needs XLM macros.
  5. Select OK.

Trusted Locations are powerful because they skip the argument

Files in a Trusted Location skip Mark of the Web, Protected View and File Block checks, and every macro in them runs. Use a dedicated subfolder, never a whole drive or Documents.

  1. In Word or Excel, select File > Options.
  2. Select Trust Center > Trust Center Settings > Trusted Locations.
  3. Select Add new location.
  4. Select Browse, pick the folder, and select OK.
  5. Select OK to close Trust Center, then save trusted macro files into that folder.
Office trusted locations flowchart showing files open with active content enabled
A file in a Trusted Location skips the later checks, which is why these folders need tight control. (Image: Microsoft)

Signed publishers are better than trusted files, until they are not

A trusted publisher lets every macro signed with the same certificate run, now and later. Publisher trust is a Windows-wide setting, not an Office-only one.

  1. Unblock the signed file first with Properties > Unblock.
  2. Open it with Disable all macros except digitally signed macros or the default setting active.
  3. When Office shows the signer, confirm the certificate belongs to the company you expect.
  4. Choose to trust the publisher so later signed macros run.

Signing does not help Excel add-in files (.xla, .xlam) that carry Mark of the Web; unblock them or use a Trusted Location.

Mac users have a simpler menu and the same judgment problem

Platform Internet macro block applies?
Office on Windows Yes
Office for Mac No
Office on Android and iOS No
Office on the web No

On a Mac the yellow-bar style prompt is still the decision point, so the same rule holds: enable only files you expected from a known sender.

Administrators can make the button disappear

With Microsoft 365 Apps for enterprise, IT teams that deploy Microsoft 365 Apps with Intune can enable Block macros from running in Office files from the Internet or set VBA Macro Notification Settings per app. Policies are not available for Microsoft 365 Apps for business.

If the banner says your administrator restricted macros, do not hunt for a workaround; save the file to OneDrive or an approved location, or ask IT to sign the macro or add a trusted site. Policy sits above Trust Center, so local settings cannot override it on a managed PC.

The real problem is that Office documents became apps

A macro-enabled file can run code, which is why phishing emails ask you to enable content to cancel an order or read a legal document.

Warning sign Why it matters
Attachment you were not expecting Phishing often spoofs people you trust
A stranger urges you to enable content Legitimate companies do not need macros for that
The document shows its own 'enable content' pop-up A common lure inside malicious files

The sensible macro strategy is narrow trust

Situation Narrowest fix
One file you trust Unblock that file
Recurring reports from one app One dedicated Trusted Location folder
Internal file server or intranet site Add it under Internet Options > Trusted sites
Vendor macros Trust the signing publisher
Template (.dotm, .xltm, .potm) Unblock it or keep it in a Trusted Location

Office macros still blocked after unblocking

No Unblock checkbox in Properties

The file opens from a network share that Windows treats as the Internet zone.

  1. Press Windows, type Internet Options and open it.
  2. On the Security tab select Trusted Sites, then Sites.
  3. Type the server or site address and select Add.
  4. For http:// addresses or shares, clear Require server verification (https:) for all sites in this zone.
  5. Select Close, then OK, and reopen the file.

Share opened by IP address blocks macros

An IP path is not in Local intranet or Trusted sites.

  1. Add the IP address or FQDN to Trusted Sites as above.
  2. Or open the share through a name already in the Local intranet zone.

Excel or PowerPoint add-in loads disabled

The .xlam or .ppam file still has Mark of the Web.

  1. Close the app.
  2. Unblock the add-in file in Properties.
  3. Reopen the app and load the add-in again.

Check whether a file still has Mark of the Web

  1. Open Command Prompt in the file's folder.
  2. Type notepad report.xlsm:Zone.Identifier, using your file name, and press Enter.
  3. Read the ZoneId line under [ZoneTransfer]: 3 means Internet and macros stay blocked.
  4. If Notepad reports the stream is missing, the mark is gone and macros follow Trust Center settings.

Office macro security warning FAQ

Why is there no Enable Content button on the red banner?

The red Security Risk banner means the file has Mark of the Web from the internet, and Office blocks its macros by default. Remove the mark with Properties > Unblock or Unblock-File, then reopen the file to get the normal prompt.

Does Enable all macros in Trust Center unblock internet files?

No. Trust Center macro settings are checked after the Mark of the Web block, so internet files stay blocked. Unblock the file, use a Trusted Location or trust the signing publisher instead.

Do macro settings apply to every Office app?

No. A Trust Center macro setting changes only the app you set it in. Set Word, Excel, PowerPoint and Access separately if you need the same behaviour in each.

Are macros blocked in Office for Mac?

The default block on macros from the internet does not apply to Office for Mac, Office on Android or iOS, or Office on the web. It affects Office on Windows only.

How do I stop trusting a document I enabled?

Clear all trusted documents in the app's Trust Center. Office keeps a file trusted after you select Enable Content and Yes, so clearing the list is the only way to revoke that trust.

Is it safe to add a Trusted Location?

It is safe only for a folder you control. Every macro in a Trusted Location runs without a warning, so use a dedicated subfolder and never a whole drive or the Documents folder.

The practical rulebook is shorter than the menus make it look

Leave Trust Center on Disable all macros with notification, unblock only files you expected, and use one Trusted Location or a trusted publisher for macros you run every week. That keeps the internet block working for everything else while removing the friction for the few files you actually need.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *