Trust Center Settings Macros: Safe Enable Guide
In this article
To change macro security in Microsoft Office, open the Trust Center: in any Office app go to File > Options > Trust Center > Trust Center Settings > Macro Settings (on Mac: Word/Excel > Preferences > Security & Privacy > Macro Settings). Choose the setting that matches your risk tolerance—most home users should pick Disable all macros with notification, which blocks macros by default but shows a yellow security bar when a file contains them, letting you enable per-file after you decide the file is safe. Never choose Enable all macros on a shared or family computer; it removes the main protection against malicious macro viruses.
What You'll Need
- A Microsoft Office app installed (Word, Excel, PowerPoint, or Outlook) on Windows or Mac. The steps below are for the desktop apps; the web versions of Office do not run macros at all.
- Administrator rights on the PC if a group policy or your organization manages Office settings—otherwise the Macro Settings options may be greyed out.
- Knowledge of whether the file you want to run came from a trusted source. If you cannot verify the sender or the file's origin, do not enable macros.
Step-by-Step
- Open any Office desktop app (Word, Excel, or PowerPoint). The Trust Center is shared across the suite, so changing it in one app applies to the others. Menu labels can differ slightly by Office version, device, and region.
- Go to File > Options. In Outlook, the path is also File > Options. On Mac, open the app menu (for example, Word) and choose Preferences.
- Select Trust Center in the left pane (Windows) or click Security & Privacy (Mac). Then click Trust Center Settings… (Windows) or Macro Security (Mac).
- Click Macro Settings in the left pane of the Trust Center dialog. You will see four radio-button options on Windows: Disable all macros without notification, Disable all macros with notification, Disable all macros except digitally signed macros, and Enable all macros (not recommended; potentially dangerous code can run).
- Choose Disable all macros with notification for the safest everyday setting. Macros stay blocked, but when you open a file that contains one, a yellow Message Bar appears with an Enable Content button. You decide file by file.
- Leave the checkbox for Trust access to the VBA project object model unchecked unless a specific, trusted add-in requires it. This setting lets code read and modify your macro project and is a common target for malware.
- Click OK to close Trust Center Settings, then OK again to close Options. The change takes effect the next time you open a document; files already open may need to be closed and reopened.
- Test it: open a document that contains a macro. You should see the yellow security bar instead of the macro running automatically. Click Enable Content only if you recognize the file and its source.
Common Mistakes
- Choosing Enable all macros to stop the prompts. This turns off the main defense against macro malware and is the single most dangerous change you can make in the Trust Center.
- Clicking Enable Content out of habit. The prompt is a decision point, not a nuisance. Verify the sender and the file's purpose first—especially for files that arrived by email or download.
- Assuming the setting applies to the web apps. Office for the web does not run macros; changing Trust Center settings there has no effect because the option does not exist in the browser version.
- Forgetting that Trusted Locations bypass macro settings. Files in a Trusted Location run macros without the security bar, so only add folders you fully control.
- Expecting the change to apply to files already open. Close and reopen the document after changing the setting.
Tips
- Use Disable all macros except digitally signed macros if your workplace distributes signed add-ins; unsigned macros stay blocked and signed ones from trusted publishers run.
- Keep Office updated. Macro security behavior and the Trust Center interface can change between versions, and updates patch known exploits.
- If you only need macros from one publisher, add that publisher to the Trusted Publishers list in the Trust Center rather than lowering the global setting.
- On a shared or family computer, set Disable all macros without notification for the least technical user account and explain why the security bar appears.
- Remember that Trust Center settings are per-user and per-app installation; a new Windows profile starts with the defaults.
Troubleshooting
- Macro Settings options are greyed out: your organization manages Office through group policy, or the Office installation is controlled by an administrator. Contact your IT admin; you cannot override it locally.
- No security bar appears when opening a macro file: check whether the file sits in a Trusted Location (Trust Center > Trusted Locations) or whether the macro setting is Disable all macros without notification, which blocks silently. Also confirm the file actually contains a macro—files with a .xlsx or .docx extension cannot store VBA macros.
- Macros still blocked after clicking Enable Content: close and reopen the file, verify the file extension is macro-enabled (.xlsm, .docm, .pptm), and check that the file is not marked as blocked in Windows (right-click the file > Properties > Unblock).
- Prompts on every open: the file is not in a Trusted Location and is not signed. Either move it to a folder you have added as a Trusted Location or ask the publisher for a digitally signed version.
- Setting will not stick: sign out of Windows and back in, or restart the Office app. If a sync tool or profile-management tool resets Office settings, it may be reverting the change.
- Suspect a malicious macro: do not enable content. Close the file, run a full antivirus scan, and delete the file if it arrived unexpectedly. Report it to your email provider if it came by message.
Frequently Asked Questions
What is the safest macro setting?
Disable all macros with notification is the best balance for most people: macros are blocked by default, and you get a prompt to enable them only for files you choose. Disable all macros without notification is stricter but gives no way to enable a legitimate file without changing the setting.
Does changing Macro Settings in Word affect Excel?
Yes on Windows—the Trust Center is shared across the Office desktop apps for the same user. On Mac, macro security is set per app under Preferences, so check each app you use.
Why can't I change Macro Settings?
Usually because an administrator manages Office through group policy, or the options are locked by your organization. In that case the setting is controlled centrally and cannot be changed on the device.
Are macros always dangerous?
No—macros are legitimate automation used in many business spreadsheets. The risk is that macro code can run commands on your computer, so the safe rule is to enable them only for files from sources you trust and can verify.
Do Trust Center settings apply to the Office web apps?
No. Office for the web does not run VBA macros, so there is no Macro Settings option there. The setting applies to the installed desktop apps only.
What does 'Trust access to the VBA project object model' do?
It allows code to read and modify the VBA project programmatically. Leave it off unless a specific trusted add-in requires it, because it widens what malicious code could do.