To change Microsoft Office macro settings, open any Office app, go to File > Options > Trust Center > Trust Center Settings > Macro Settings, and choose the option that matches your security needs. The default “Disable all macros with notification” is the safest balance for most people: macros are blocked, but you get a yellow warning bar when a document contains one, and you can enable it for that session only. You need a Windows PC or Mac with a desktop Office app installed (Word, Excel, PowerPoint, or Outlook) and administrator rights if you plan to change system-wide policies. The labels can differ slightly by Office version, device, and region, but the path is the same across Office 2016, 2019, 2021, and Microsoft 365.

What You'll Need

  • A Windows PC or Mac with a desktop version of Microsoft Office (Word, Excel, PowerPoint, or Outlook) installed.
  • Administrator rights on the computer if you need to change settings for all users or edit system policies.
  • Knowledge of whether you trust the source of any macro-enabled file you plan to use.

Step-by-Step

  1. Open any Office application, such as Word or Excel. The Trust Center settings are shared across the suite, so changing them in one app applies to all.
  2. Click File in the top-left corner, then click Options at the bottom of the left-hand menu. On a Mac, click the application menu (for example, Word) and choose Preferences, then Security & Privacy.
  3. In the Options window, select Trust Center in the left pane, then click the Trust Center Settings… button on the right.
  4. In the Trust Center dialog, click Macro Settings in the left pane.
  5. Choose one of the four options:
    • Disable all macros without notification – macros are blocked and no warning appears. Use this if you never use macros and want maximum security.
    • Disable all macros with notification – macros are blocked, but a yellow warning bar appears when a document contains macros, letting you enable them for that session. This is the default and recommended for most users.
    • Disable all macros except digitally signed macros – only macros from trusted publishers with a valid digital signature are allowed. Unsigned macros are blocked with a notification.
    • Enable all macros (not recommended; potentially dangerous code can run) – all macros run without warning. Only use this in a controlled environment where you trust every file.
  6. Optionally, tick or clear Trust access to the VBA project object model. This setting is only needed for developers who write code that programmatically accesses the VBA project. Leaving it unticked is safer for everyday use.
  7. Click OK to close the Trust Center, then click OK again to close the Options window. The changes take effect immediately; you do not need to restart Office.
  8. If you need to change the setting for all users on the computer, repeat the steps while logged in as an administrator, or use the Group Policy Editor (Windows Pro and Enterprise) under User Configuration > Administrative Templates > Microsoft Office > Security Settings. The exact policy names vary by Office version.

Common Mistakes

  • Choosing “Enable all macros” for convenience. This removes the warning that protects you from malicious code. Stick with “Disable all macros with notification” unless you have a specific, trusted need.
  • Confusing macro settings with ActiveX settings. They are separate sections in the Trust Center; changing one does not affect the other.
  • Expecting the setting to apply to the mobile Office apps. Macro settings are only available in the desktop versions of Office. The mobile apps do not run macros at all, so there is nothing to configure.
  • Forgetting that Trust Center settings are per-user, not per-document. Changing them affects all documents you open in Office on that computer.
  • Ignoring the yellow warning bar. If you see “Macros have been disabled” and you did not expect macros, do not click “Enable Content” – treat the file as suspicious.

Tips

  • Use the “Disable all macros with notification” setting as your everyday default. It blocks macros automatically but lets you enable them for a single session when you trust the file.
  • If you regularly use macros from a specific trusted publisher, ask them for a digitally signed version and use the “Disable all macros except digitally signed macros” option. This lets their macros run while blocking everything else.
  • You can add trusted locations (folders) in the Trust Center under Trusted Locations. Files in those folders bypass macro security checks, so only use this for folders you control.
  • Keep Office updated. Security patches often improve macro protection and may reset some settings to safer defaults.
  • On a Mac, the path is slightly different: open the app’s preferences, go to Security & Privacy, and look for macro settings there. The options are similar.

Troubleshooting

  • The macro settings are greyed out. This usually means your organization has applied Group Policy or a registry setting that locks the options. Contact your IT administrator; you cannot override it locally.
  • You changed the setting but macros still do not run. Check whether the file is in a trusted location or blocked by Windows (right-click the file, choose Properties, and look for an “Unblock” checkbox). Also ensure the macro security level is not set to “Disable all macros without notification”.
  • The Trust Center button is missing. In some older or customized installations, the Trust Center may be disabled by policy. Try opening a different Office app or repairing Office from Control Panel > Programs and Features.
  • You see a “blocked by policy” message. This is a system-level restriction. Only an administrator can change it via Group Policy or the registry.
  • Macros work in one app but not another. Trust Center settings are shared, but add-ins or document-specific settings may differ. Check the Trust Center in the app where the macro fails.

Frequently Asked Questions

What is the safest macro setting in Office?

“Disable all macros with notification” is the safest practical setting for most users. It blocks macros automatically but lets you enable them for a single session when you trust the file.

Do macro settings apply to all Office apps?

Yes. The Trust Center settings are shared across Word, Excel, PowerPoint, and Outlook on the same computer and user account.

Can I enable macros for just one document?

Yes. With “Disable all macros with notification” selected, open the document and click the yellow warning bar, then choose “Enable Content”. This enables macros for that session only; the next time you open the file, you will be asked again.

Why are my macro settings greyed out?

Your organization likely controls the settings through Group Policy. Only an IT administrator can change them.

Do I need to restart Office after changing macro settings?

No. The changes take effect immediately for new documents you open. Existing open documents may need to be closed and reopened.

What does “Trust access to the VBA project object model” do?

It allows macros to programmatically access the VBA project, which is only needed for advanced development. Leaving it unticked is safer for everyday use.