Why Excel Macros Disappear from the Macro List
Question details
The user wants recorded macros to appear in Excel's Alt+F8 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.
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.
Check the macro's procedure and module
Use this solution when the VBA code exists but its procedure is missing from the Macro dialog.
In Excel, open Developer > Visual Basic, then find the affected workbook in the Project Explorer.
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.
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.
Look at the top of the standard module for Option Private Module. If present, remove it when appropriate, then save the workbook.
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 workbook settings and OneDrive synchronization
Use these checks if the procedure is eligible for the Macro dialog but is still missing.
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.

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.




