To open the Macro dialog box in Microsoft Office (Word, Excel, PowerPoint, or Access), press Alt+F8 on Windows. On a Mac, press Option+F8. This keyboard shortcut works in all current versions of Office and is the fastest way to reach the dialog where you can run, edit, or delete macros.
Why You Might Need the Macro Dialog
The Macro dialog box is the control center for VBA (Visual Basic for Applications) macros in Office programs. You use it to:
- Run a recorded or written macro
- Edit a macro's code in the VBA editor
- Delete a macro you no longer need
- Create a macro from scratch (by opening the VBA editor)
- Organize macros by storing them in different locations (e.g., current document vs. personal macro workbook)
Without this dialog, you'd have to navigate through menu ribbons or use the VBA editor directly, which is less convenient for quick tasks like running a macro you use often.
How to Open the Macro Dialog (Step-by-Step)
The exact steps depend on your Office version and operating system:
Windows (Office 2010 and later)
- Open the document or workbook that contains the macro.
- Press Alt+F8 on your keyboard. The Macro dialog box appears immediately.
- Alternatively, go to the View tab, click the Macros dropdown arrow, and select View Macros.
Mac (Office 2016 and later)
- Open the document with the macro.
- Press Option+F8.
- Or go to the Tools menu, hover over Macro, and select Macros.
Older Office versions (2003 and earlier)
On Windows, go to Tools > Macro > Macros. On Mac (Office 2004), use Tools > Macro > Macros.
What to Do If the Shortcut Doesn't Work
If pressing Alt+F8 does nothing, try these fixes in order:
- Check if macros are enabled. If the file has macros disabled, the dialog may not open. Look for a yellow security warning bar at the top of the document. Click Enable Content to allow macros.
- Try the ribbon path. Go to View > Macros > View Macros. This works even if the keyboard shortcut is somehow remapped.
- Check if the file is a supported format. Files with extensions like .docx, .xlsx, or .pptx cannot contain macros. Only macro-enabled formats (.docm, .xlsm, .pptm) can store them. If you're in a macro-free file, the Macro dialog will be empty or grayed out.
- Ensure VBA is installed. In some Office installations, VBA support is not included. Go to Control Panel > Programs > Programs and Features, find your Office installation, click Change, and check that "Visual Basic for Applications" is enabled.
- Test with a new document. Create a new blank document and press Alt+F8. If it works there, the issue is specific to the original file.
What You Can Do Inside the Macro Dialog
Once the dialog is open, you'll see a list of macros available in the current context. The main buttons are:
- Run – executes the selected macro immediately.
- Step Into – opens the VBA editor and pauses at the first line of code, letting you debug line by line.
- Edit – opens the macro in the VBA editor so you can modify the code.
- Create – opens the VBA editor with a new empty macro stub.
- Delete – removes the macro after confirmation.
- Organizer – lets you copy macros between documents or templates.
The Macros in dropdown at the bottom lets you choose where to look: the current document, your normal template (Word), your personal macro workbook (Excel), or all open presentations (PowerPoint).
Common Problems and Misconceptions
Misconception: Alt+F8 only works in Excel. It actually works in Word, PowerPoint, Access, and Outlook (in the VBA editor). However, in Outlook you need to be in a module that supports macros, like a mail item window.
Problem: The Macro dialog is grayed out. This usually means the current document doesn't support macros (e.g., a .docx file) or macros are disabled by policy. If your organization enforces a policy that disables macros, you'll need to contact your IT administrator.
Problem: I see macros but can't run them. Some macros require the document to be trusted. Go to File > Options > Trust Center > Trust Center Settings > Macro Settings and choose "Disable all macros with notification" (recommended) or "Enable all macros" (risky).
Misconception: The Macro dialog is the same as the VBA editor. It's not. The dialog is a simple list for running and managing macros. The VBA editor (opened with Alt+F11) is where you write and edit code.
Alternatives to the Macro Dialog
If you find yourself opening this dialog often, consider these alternatives:
- Quick Access Toolbar – Add the "View Macros" button to your Quick Access Toolbar for one-click access.
- Keyboard shortcut – You can assign a custom shortcut to a specific macro by going to File > Options &strong> Customize Ribbon > Keyboard Shortcuts (in Word) or File > Options > Customize Ribbon (in Excel).
- Run from VBA editor – Press Alt+F11, place the cursor inside the macro's code, and press F5 to run it.
- Form controls or buttons – Insert a button on your worksheet or document and assign the macro to it.
Frequently Asked Questions
How do I open the Macro dialog in Excel on a Mac?
Press Option+F8 on your Mac keyboard. Alternatively, go to the Tools menu, then Macro, and choose Macros.
Why is the Macro dialog box empty?
An empty dialog means no macros are stored in the current document or the selected location. Check the "Macros in" dropdown to see if you're looking in the right place (e.g., the current workbook vs. the Personal Macro Workbook). Also, ensure the file is macro-enabled (.xlsm, .docm, etc.).
Can I open the Macro dialog in Word Online or Google Docs?
No. Web-based Office apps and Google Docs do not support VBA macros. You need the desktop version of Microsoft Office to use the Macro dialog.
How do I run a macro without opening the dialog?
If you have a macro assigned to a button, shape, or keyboard shortcut, you can run it directly. Otherwise, you can run it from the VBA editor by pressing F5 while the cursor is inside the macro's code.
Is it safe to enable macros to use the dialog?
Only enable macros if you trust the source of the file. Macros can contain harmful code. The Macro dialog itself is safe, but running an unknown macro can be dangerous. Always verify the macro's code before running it.
What is the difference between Alt+F8 and Alt+F11?
Alt+F8 opens the Macro dialog (run/manage macros). Alt+F11 opens the VBA editor (write/edit code). They serve different purposes.