Trust Center Settings: How to Allow Macros Safely
In this article
To allow macros in Microsoft Office, you change the Trust Center setting from "Disable all macros with notification" to "Enable all macros" – but Microsoft strongly advises against this because it lets any macro run without warning, including malicious ones. A safer approach is to keep the default notification setting and enable macros only for files from trusted locations or after verifying the source. This guide walks you through the exact steps for Windows and Mac, explains the risks, and shows you how to reduce them.
What You'll Need
- A Windows PC or Mac with Microsoft Office (Word, Excel, PowerPoint, or Outlook) installed.
- Administrator rights on the computer (required to change Trust Center settings in some organizations).
- The file containing the macro, ideally from a known and trusted source.
Step-by-Step
- Open any Office application (e.g., Excel or Word). The Trust Center is shared across the suite, so changing it in one app applies to all.
- Go to File > Options. On Mac, go to the application menu (e.g., Excel) and choose Preferences.
- Select Trust Center in the left pane (Windows) or click the Trust Center button (Mac).
- Click Trust Center Settings… (Windows) or the Trust Center settings button (Mac). Note: menu labels can differ slightly by Office version, device, or region.
- Choose Macro Settings in the left pane.
- Select the option you need:
- Enable all macros (not recommended; potentially dangerous code can run) – allows every macro to run without any prompt. Use only if you fully trust every file you open.
- Disable all macros with notification (default) – macros are disabled but you get a security warning bar asking if you want to enable them for that session.
- Disable all macros except digitally signed macros – only macros from a trusted publisher run.
- Click OK to save the change. Close and reopen the Office application for the setting to take effect.
- Open your macro-enabled file (e.g., .xlsm, .docm). If you chose "Enable all macros," the macros will run automatically. If you kept the default notification setting, look for the yellow security warning bar and click "Enable Content" only if you trust the file.
Common Mistakes
- Enabling all macros globally just to run one file. This opens you to malware in any future document. Prefer per-file enabling or trusted locations.
- Ignoring the security warning bar and assuming macros are running when they are not. If nothing happens, check whether the bar is present.
- Changing settings in one app but expecting them to apply to another – they do apply suite-wide, but only after you restart the app.
- Forgetting that Trust Center settings can be locked by group policy in a work or school environment. If options are greyed out, contact your IT administrator.
Tips
- Use Trusted Locations instead of enabling all macros. In Trust Center, go to Trusted Locations and add a folder where you keep your macro files. Any file in that folder runs macros without prompting, while everything else stays protected.
- Digitally sign your own macros so you can use the "Disable all macros except digitally signed macros" option and still run your code.
- Keep Office updated – security patches often improve macro protection.
- Never enable macros in files from unknown sources, even if the file name looks familiar. Macro viruses often arrive as email attachments.
Troubleshooting
- Macros still don't run after changing the setting: Make sure the file is saved in a macro-enabled format (.xlsm, .docm, .pptm). Also check that the file isn't blocked: right-click the file, choose Properties, and if you see an "Unblock" checkbox, tick it and click OK.
- Options are greyed out: Your organization may have policies that prevent changes. Contact your IT department.
- Security warning bar doesn't appear: The macro may be disabled by another setting, or the file may be in a trusted location (in which case macros run silently). Check Trust Center > Trusted Locations.
- You see a "blocked content" message: Office may have blocked the file type entirely. Go to Trust Center > File Block Settings and review the list, but be cautious about unblocking file types.
- Macros run in one app but not another: Trust Center settings are shared, but some apps (like Outlook) have additional macro security settings under their own Trust Center section.
Frequently Asked Questions
Is it safe to enable all macros?
No, it is not recommended. Enabling all macros allows any macro to run without warning, including malicious code. Use the default notification setting or trusted locations instead.
How do I enable macros for just one file?
Keep the default "Disable all macros with notification" setting. When you open the file, click "Enable Content" in the security warning bar. This enables macros for that session only.
What is a trusted location?
A folder you designate in Trust Center where files are allowed to run macros without prompting. Only add folders you control and trust.
Why are the macro settings greyed out?
Your organization's group policy likely controls these settings. Contact your IT administrator for help.
Can I enable macros in Outlook?
Outlook has its own macro security settings under Trust Center > Macro Settings. The options are similar, but Outlook macros are often disabled by default for security.
Do these steps work on Mac?
Yes, the path is slightly different: open the app's Preferences, go to Trust Center, and adjust Macro Settings. The options are the same.