VBA & Macro Problems

Why Excel Macros Disappear from the Macro List

Kushani NimanthikaKushani Nimanthika Dec 2, 2026 868 views

Question details

The user wants recorded macros to appear in Excel's Alt+F8 macro list.

Why Excel Macros Disappear from the Macro List
Product
Microsoft Excel
Device & OS
not provided
Scenario
Macros are stored in a OneDrive workbook and a personal file, and the user wants to run them from the Macro dialog.
Observed behavior
Some macros are absent from the Macro dialog even though their VBA modules remain visible and the procedures can be run in the Visual Basic Editor.
Before you start

Open the affected workbook in desktop Excel and confirm that the macro code is visible in the Visual Basic Editor. If the macro is stored in PERSONAL.XLSB, make sure that workbook is open as well.

Solution 1Recommended

Check the macro's procedure and module

Use this solution when the VBA code exists but its procedure is missing from the Macro dialog.

1
Open the VBA project

In Excel, open Developer > Visual Basic, then find the affected workbook in the Project Explorer.

2
Check the module location

Expand Modules and open the module containing the macro. If the procedure is in a worksheet or ThisWorkbook module, move it to a standard module using Insert > Module, provided it does not depend on the original module's context.

3
Check the procedure declaration

Make sure the macro is a public Sub with no arguments, such as Public Sub MyMacro(). A Private Sub, Function, or Sub that requires arguments will not appear in the Macro dialog.

4
Check module visibility

Look at the top of the standard module for Option Private Module. If present, remove it when appropriate, then save the workbook.

5
Refresh the macro list

Return to Excel, open Developer > Macros or press Alt+F8, and set Macros in to All Open Workbooks or the workbook containing the macro.

Check the macro's procedure and module
Event procedures: Worksheet and workbook event procedures normally belong in their original modules and are triggered by events rather than selected from the Macro dialog. Do not move them solely to make them appear in the list.
Free Microsoft Office alternative

Work with Excel spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility, making it easy to move everyday workbook work between office suites. It does not fix Excel's missing macro list, and VBA macro support can vary by WPS version and platform.

Open and edit Excel-compatible spreadsheet files, including XLSX and XLSMUse a familiar spreadsheet interface for everyday workbook tasksMove compatible files between Microsoft Office and WPS OfficeUse a free, lightweight office suite for documents and spreadsheets
microsoft office alternative - wps office

Frequently Asked Questions

Why can I run a macro in the VBA editor but not see it in Alt+F8?

The Macro dialog lists eligible public Sub procedures without arguments in standard modules. In Developer > Visual Basic, check the procedure declaration and module location, and look for Option Private Module at the top of the module.

How do I find macros stored in PERSONAL.XLSB?

Make sure PERSONAL.XLSB is open, then choose Developer > Macros and set Macros in to All Open Workbooks or PERSONAL.XLSB. The workbook can be hidden and still be open.

Can OneDrive cause the wrong macro version to appear?

A sync conflict or an older workbook copy can leave you viewing different code than expected. Check the file's OneDrive sync status and resolve any conflicts, then reopen the intended copy in Excel.

Which file format should I use to keep VBA macros?

For a regular workbook, use File > Save As and select Excel Macro-Enabled Workbook (*.xlsm). PERSONAL.XLSB uses the macro-enabled Excel Binary Workbook format.