Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Word Macros: How to Show and Manage Your Macros

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To show and manage macros in Microsoft Word, go to the View tab on the ribbon, click the arrow under Macros, and select View Macros. This opens a dialog box where you can see all available macros, run them, or edit their underlying code. Macros are recorded sequences of commands or scripts written in VBA (Visual Basic for Applications) that automate repetitive formatting and typing tasks.

Before you can show or create macros, you must ensure the Developer tab is visible or that you have the necessary permissions to run scripts. Because macros can contain malicious code, Word disables them by default for security reasons. You will need to adjust your Trust Center settings if you intend to run macros from external sources.

What You'll Need

  • A computer with Microsoft Word installed (Windows or macOS).
  • Administrative permissions to change ribbon settings if the Developer tab is hidden.
  • A document containing macros, or the intent to create one.

Step-by-Step

  1. Enable the Developer Tab: While you can access some macro functions via the View tab, the Developer tab provides full control. Right-click any existing tab on the ribbon (such as Home or Insert) and select Customize the Ribbon. In the right-hand column, check the box next to Developer and click OK. (Note: Menu labels may vary slightly depending on your version of Word or region).
  2. Access the Macro List: Navigate to the View tab. In the Macros group on the far right, click the Macros dropdown menu. From the list, select View Macros. Alternatively, if you enabled the Developer tab, click the Macros button located on the far left of the Developer tab.
  3. Filter Your View: In the "Macros" dialog box that appears, look at the Macros in: dropdown menu at the bottom. You can choose to show macros stored in the current document, macros stored in the Global Template (Normal.dotm), or all available macros.
  4. Run a Macro: Select the name of the macro you wish to execute from the list and click the Run button. Word will immediately perform the recorded sequence of actions.
  5. View the Code: If you want to see how the macro works or make changes to it, select the macro name and click Edit. This will open the Visual Basic Editor (VBE) window, showing the VBA code.
  6. Stop the Macro: If a macro is running and you need to stop it immediately, press Ctrl + Break (or Cmd + Period on some Mac versions) on your keyboard.

Common Mistakes

  • Saving in the Wrong Format: The most common mistake is saving a macro-enabled document as a standard .docx file. Standard Word documents cannot store macros. You must save the file as a Word Macro-Enabled Document (.docm).
  • Ignoring Security Warnings: When opening a document with macros, Word often displays a yellow security bar stating "Macros have been disabled." Users often ignore this bar, then wonder why their macros aren't showing or running. You must click Enable Content to activate them.
  • Overwriting the Normal Template: Saving all macros to the Normal.dotm template can clutter your Word environment. If a macro is only needed for one specific project, save it within that specific .docm file instead of the global template.

Tips

  • Assign Macros to Buttons: Instead of navigating to the View menu every time, you can add your most-used macros to the Quick Access Toolbar (the small row of icons at the very top of the window). Go to File > Options > Quick Access Toolbar, select "Macros" from the dropdown, and add your chosen script.
  • Use Keyboard Shortcuts: When recording a new macro, Word allows you to assign a keyboard shortcut. Use this for high-frequency tasks to avoid using the mouse entirely.
  • Comment Your Code: If you are editing VBA code, use a single quote (') to add notes to your script. This helps you remember what the code does when you revisit it months later.

Troubleshooting

If you cannot see your macros or they refuse to run, try these steps in order:

  1. Check the File Extension: Ensure the file ends in .docm. If it is a .docx, the macros were stripped out during the last save and cannot be recovered.
  2. Verify Macro Security Settings: Go to File > Options > Trust Center > Trust Center Settings > Macro Settings. Ensure that "Disable all macros with notification" is selected. This allows you to choose when to enable them via the yellow bar.
  3. Check the "Macros In" Dropdown: In the View Macros dialog, ensure you haven't accidentally filtered the list to a document that doesn't contain any macros. Switch the dropdown to "All active templates and documents."
  4. Restart Word: Sometimes the VBA project becomes unresponsive. Save your work, close all Word instances via Task Manager (Windows) or Activity Monitor (Mac), and restart the application.

Frequently Asked Questions

Can I use Word macros on Word for the Web?

No, Word for the Web does not support VBA macros. You must open the document in the Word desktop application to view or run macros.

What is the difference between a recorded macro and a VBA macro?

A recorded macro is created by Word "watching" your actions and writing the code for you. A VBA macro is written manually by a user in the Visual Basic Editor, allowing for more complex logic like loops and conditional "if/then" statements.

Are macros safe to use?

Macros created by you or trusted colleagues are safe. However, you should never "Enable Content" on a macro-enabled document received from an unknown email sender, as macros can be used to execute malicious scripts on your computer.

How do I delete a macro I no longer need?

Open the View Macros dialog box, select the macro you want to remove from the list, and click the Delete button.

Can I share my macros with other people?

Yes. If you save the macro in the document itself (.docm), anyone you send that file to can use the macro, provided their security settings allow them to enable content.