Smart Systems for Home

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

Excel Show Macros: How to View and Manage Your Macros

· 7 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 macros in Excel, go to the View tab on the ribbon and click the Macros button, or press Alt + F8 on your keyboard. This opens the Macro dialog box, which lists all available macros in the current workbook and any open global templates. Depending on your version of Excel, some labels may differ slightly, but the core functionality remains consistent across Windows and macOS versions.

Macros are sequences of instructions used to automate repetitive tasks. Because they are written in VBA (Visual Basic for Applications), they are hidden from the standard spreadsheet view to prevent accidental changes. Showing your macros is the first step toward running them, editing their code, or deleting those that are no longer needed. To access these tools, you must ensure your workbook is saved in a macro-enabled format, as standard .xlsx files cannot store macro code.

What You'll Need

  • A computer with Microsoft Excel installed.
  • A workbook that contains macros, or a Personal Macro Workbook (Personal.xlsb) active in the background.
  • The workbook must be saved as an .xlsm (Excel Macro-Enabled Workbook) or .xlsb (Excel Binary Workbook) for the macros to persist.
  • Administrative permissions to enable macros if your organization has strict security policies.

Step-by-Step

  1. Open your Excel Workbook: Launch Excel and open the specific file that contains the macros you wish to view. If the macros are stored in your Personal Macro Workbook, any blank Excel file will work.
  2. Access the Macro Dialog Box: There are two primary ways to do this. The fastest method is using the keyboard shortcut Alt + F8. Alternatively, use the mouse: click on the View tab in the top ribbon, locate the Macros group on the far right, and click the Macros icon.
  3. Filter the Macro List: Once the Macro dialog box appears, you will see a list of available macros. At the bottom of the window, there is a dropdown menu labeled Macros in:. You can select "This Workbook" to see only macros saved in the current file, or "All Open Workbooks" to see every macro available across all open files and your global template.
  4. Select a Macro: Click on the name of the macro you want to interact with. This highlights the macro and enables the action buttons on the right side of the dialog box.
  5. Choose an Action: Depending on your goal, select one of the following buttons:
    • Run: Executes the macro immediately on your current sheet.
    • Step Into: Opens the Visual Basic Editor and runs the code one line at a time, which is useful for debugging.
    • Edit: Opens the Visual Basic Editor directly to the specific subroutine (the block of code) for that macro, allowing you to change the logic.
    • Delete: Permanently removes the macro from the workbook.
  6. Using the Developer Tab (Advanced Method): If you frequently need to show and manage macros, you should enable the Developer tab. Right-click any tab on the ribbon, select Customize the Ribbon, and in the right-hand column, check the box next to Developer. Once enabled, you can click the Macros button directly from the Developer tab, which provides a more centralized hub for VBA tools.

Common Mistakes

One of the most frequent errors users make is attempting to show macros in a file saved as a standard .xlsx workbook. The .xlsx format is designed to be XML-based and strictly excludes any executable code for security reasons. If you record a macro in an .xlsx file and save it without changing the file type, Excel will warn you that the features cannot be saved. If you ignore this warning, the macros are deleted upon saving, and they will not appear in the Macro dialog box when you reopen the file.

Another common mistake is overlooking the "Macros in" dropdown menu. Users often believe their macros have disappeared when they are actually just looking at the wrong workbook. If you recorded a macro into your Personal Macro Workbook (which allows the macro to be used in any file you open), it will not show up if the filter is set to "This Workbook." Always switch to "All Open Workbooks" if you cannot find a specific script.

Some users also confuse "Showing Macros" with "Showing the VBA Editor." While the Macro dialog box lists the names of the macros, it does not show the actual code. To see the code, you must click Edit or press Alt + F11. Many beginners spend time searching the standard Excel interface for the code itself, which is impossible because the code resides in a separate application window called the Visual Basic Editor.

Tips

To make your macros more accessible, you can assign them to a custom button on the Quick Access Toolbar (QAT). Instead of going to View > Macros every time, right-click the QAT at the very top of the window, select Customize Quick Access Toolbar, change the "Choose commands from" dropdown to Macros, and add your preferred script to the list. This creates a one-click shortcut for your most used automations.

If you are managing a large number of macros, use a consistent naming convention. Since the Macro dialog box lists items alphabetically, starting your macro names with a prefix (e.g., "Report_Monthly", "Report_Weekly", "Data_Clean") keeps related scripts grouped together, making them much easier to find in the list.

For those who share workbooks with others, consider creating a "Menu" sheet. Instead of asking users to navigate through the View tab to find macros, you can insert a shape or a button (from the Developer tab > Insert) and right-click it to Assign Macro. This provides a user-friendly interface where the macro is "shown" as a clickable button on the spreadsheet itself.

Troubleshooting

If you follow the steps but the Macro dialog box is empty, the first thing to check is the file extension. If the file ends in .xlsx, the macros are gone. You must reopen the original .xlsm file or re-record the macros. If the file is .xlsm but the list is still empty, check if the macros were stored in a different workbook that is currently closed.

If you see the macro in the list but the Run button is greyed out or the macro fails to start, it is likely a security setting issue. Excel disables macros by default to protect against malware. Go to File > Options > Trust Center > Trust Center Settings > Macro Settings. Ensure that you have selected "Disable VBA macros with notification." This allows you to click the "Enable Content" yellow bar that appears at the top of the screen when you first open a macro-enabled file.

If the Visual Basic Editor opens but you cannot find the code for the macro you selected, check the Project Explorer on the left side of the editor window (press Ctrl + R if it is missing). Look through the folders for Modules. Macros are typically stored in modules rather than under the "Sheet" or "ThisWorkbook" objects. If the Modules folder is missing, the code may have been deleted or moved to a hidden add-in.

In cases where Excel freezes when you try to show or run a macro, check for "Infinite Loops" in your code. If a macro is designed to run a loop that never ends, Excel will stop responding. You can try to interrupt the code by pressing Ctrl + Break or Esc repeatedly. If the program is completely locked, you will need to use the Task Manager to force-quit Excel, though this will result in the loss of any unsaved data.

Frequently Asked Questions

Why can't I see my macros in the list?

This usually happens for one of three reasons: the file was saved as .xlsx (which strips macros), the macros are in a different open workbook and your filter is set to "This Workbook," or the macros were stored in a Personal Macro Workbook that failed to load during startup.

Is there a keyboard shortcut to show the macro list?

Yes, pressing Alt + F8 on Windows will immediately open the Macro dialog box regardless of which tab you are currently viewing on the ribbon.

Can I show macros on Excel for the Web?

No, Excel for the Web does not support the creation or running of VBA macros. You must open the file in the desktop application to view, edit, or run macros.

How do I show the actual code of a macro?

Open the Macro dialog box (Alt + F8), select the macro you want to see, and click the Edit button. This will launch the Visual Basic Editor and take you directly to the code.

What is the difference between a Macro and a Module?

A macro is the specific set of instructions (the subroutine) that performs a task. A module is the "container" or folder within the VBA editor where one or more macros are stored.

Why does Excel ask me to enable content before showing macros?

This is a security feature. Because macros can contain malicious code that could harm your computer, Excel blocks them by default until you explicitly trust the source of the file by clicking "Enable Content."