What macros are and why Word blocks them by default

A macro is a recorded set of actions that Word can play back automatically — like a shortcut that fills in a form, reformats text, or runs a series of edits in sequence. Macros save time on repetitive work, but they can also be used to spread malware, which is why Word disables them by default when you open a document.

When you open a file containing macros, Word shows a yellow notification bar at the top saying "Security Warning: Macros have been disabled." You have three choices: leave them disabled, enable them for that file only, or change your security settings so macros run automatically. Which one you pick depends on whether you trust the document and who sent it to you.

The safest approach is to enable macros only for documents you know came from a trusted source — your employer, a colleague you work with regularly, or a reputable template site. If you are unsure about a document, do not enable macros.

Key Takeaways

  • Word blocks macros by default to protect against malware, and shows a yellow security bar when a macro-containing file opens.
  • You can enable macros for a single document by clicking "Enable Content" on the security bar, without changing your overall settings.
  • To enable macros permanently for all documents, go to File > Options > Trust Center > Trust Center Settings > Macro Settings and select "Enable All Macros."
  • Only enable macros for documents from sources you trust, such as your workplace or a colleague you work with regularly.
  • If you enable all macros and later regret it, return to the same Macro Settings menu and select "Disable All Macros (Except Digitally Signed Macros)" to restore protection.

Enable macros for a single document

The quickest and safest way to use a macro-enabled document is to turn on macros just for that file. Open the document in Word. At the top, you will see a yellow bar that says "Security Warning: Macros have been disabled." Click the button labeled "Enable Content" on the right side of that bar.

Word will enable the macros in that document only. The next time you open a different document with macros, you will see the same warning and have to click "Enable Content" again. This method keeps your default security setting in place while letting you use trusted documents.

Enable macros for all documents permanently

If you work with macro-enabled documents regularly and trust your sources, you can change Word's default setting so macros run automatically. Open Word and go to File in the top left. Click Options at the bottom of the menu.

In the Options window, click Trust Center on the left side. Then click the button labeled Trust Center Settings. A new window opens. On the left side, click Macro Settings.

You will see four radio button options. The default is "Disable All Macros Except Digitally Signed Macros." To enable all macros, click the radio button next to Enable All Macros. Then click OK at the bottom, and click OK again to close the Options window.

From now on, Word will run macros automatically when you open any document. You will no longer see the yellow security bar. This setting applies to all documents you open in Word on this computer, so only use it if you are confident in the files you work with.

Enable macros for digitally signed documents only

A middle ground exists between blocking all macros and enabling all of them. If you choose Disable All Macros Except Digitally Signed Macros in the Macro Settings menu, Word will run macros only in documents that have been digitally signed by a trusted publisher.

A digital signature is a way for a document creator to prove they wrote the code and that it has not been changed since they signed it. Large organizations and software companies often sign their macro-enabled templates this way. This setting is safer than enabling all macros, because it still blocks unsigned code that could be malicious.

To use this setting, follow the steps above to reach Macro Settings, but click the radio button next to "Disable All Macros Except Digitally Signed Macros" instead of "Enable All Macros." Click OK twice to save the change.

Turn macros back off if you change your mind

If you enabled all macros and later decide you want Word to block them again, the process is straightforward. Go to File > Options > Trust Center > Trust Center Settings > Macro Settings.

Click the radio button next to Disable All Macros Except Digitally Signed Macros (the default setting). Click OK twice. Word will now block all unsigned macros again, and you will see the yellow security bar when you open macro-enabled documents.

Where to find macros once they are enabled

After you enable macros, you may wonder how to actually run them. In Word, go to the View tab at the top. On the right side of the ribbon, you will see a button labeled Macros. Click the small arrow next to it and select View Macros.

A window opens showing all the macros in the current document. Click the name of the macro you want to run, then click the Run button. Some documents have buttons or menu items built in that run macros automatically when you click them, so check the document itself for instructions.

Frequently Asked Questions

What happens if I enable macros in a document that does not actually contain any?

Nothing happens. Word checks for macros when you click "Enable Content," and if there are none, the button straightforward closes the security bar. Enabling content does not create macros or change the document.

Can I enable macros for documents from one person but not others?

Word does not have a setting to trust specific people or email addresses. Your options are to enable macros for all documents, for digitally signed documents only, or to click "Enable Content" manually for each document you trust. There is no middle ground that remembers individual senders.

Is it safe to enable all macros?

It is safe only if you trust every document you open in Word. If you read templates, receive files from email, or work with documents from the internet, keeping macros disabled by default is safer. Use "Enable Content" for individual files instead.

Why does the yellow security bar sometimes not appear?

Word does not show the security bar for documents opened from trusted locations, such as a folder you marked as trusted in Trust Center Settings. If a document is in a trusted folder, macros run automatically regardless of your macro setting.

Do I need to enable macros every time I open the same document?

No. Once you click "Enable Content" for a document, Word remembers that choice for that specific file. The next time you open it, macros will run without showing the security bar. If you move the document to a different folder or open it on another computer, you may need to enable macros again.