Fix Missing Excel Macros and Find the XLStart Folder
Question details
The user needs to find previously available macros and locate Excel's XLStart folder.

- Product
- Microsoft 365 Excel
- Device & OS
- not provided
- Scenario
- Macros went missing after an Office repair and a switch from 32-bit to 64-bit Excel.
- Observed behavior
- The Macro dialog is empty, the macros remain unavailable in Safe Mode, and the XLStart folder cannot be found.
Identify the workbook that previously contained the macros and check whether they were stored in that file or in PERSONAL.XLSB. Only enable macros in files you trust.
Check the workbook and VBA project for missing macros
Use this check to determine whether the macros are present but not listed, or whether the VBA project is missing or damaged.
Because the macros are also missing in Safe Mode, an add-in is less likely to be the cause. The Macro dialog does not list every VBA procedure; for example, procedures with required arguments or private procedures may not appear.
In Excel, open the affected workbook and select File > Save As. Check that the file uses a macro-enabled format such as Excel Macro-Enabled Workbook (.xlsm) or Excel Binary Workbook (.xlsb). Saving a macro-free copy as .xlsm will not restore deleted code.
On Windows, press Alt+F11 to open the Visual Basic Editor. In Project Explorer, expand the affected workbook and its Modules folder, if present, to look for the expected code. Use View > Project Explorer if the pane is hidden.
Return to Excel and select View > Macros > View Macros. Check the “Macros in” selection and choose the relevant open workbook or All Open Workbooks.
If Excel displays a security warning when opening a trusted workbook, review it and choose Enable Content only if you trust the file and its source. You can also review settings under File > Options > Trust Center > Trust Center Settings > Macro Settings.

Locate XLStart and check for the Personal Macro Workbook
Use this method if the missing macros may have been stored in PERSONAL.XLSB rather than in the affected workbook.
Restore a known-good workbook if the VBA project is damaged
Use an earlier copy when the expected VBA modules are absent or the project cannot be opened.
Work with Excel files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing spreadsheets. Its support for common Office formats makes it easier to move existing files, although it does not repair missing Excel VBA projects.

Frequently Asked Questions
Why is Excel's Macro dialog empty?
The macros may be in another workbook, missing from the VBA project, or excluded from the list because of their procedure type. Select View > Macros > View Macros and check the “Macros in” selection, then inspect the workbook in the Visual Basic Editor.
Where is the XLStart folder on Windows?
Press Windows+R and enter %appdata%\Microsoft\Excel\XLSTART to check the user-profile folder. You can also query Excel's startup path by entering ? Application.StartupPath in the Visual Basic Editor's Immediate window.
Can saving an XLSX file as XLSM bring back deleted macros?
No. File > Save As can create a macro-enabled .xlsm file, but it cannot recreate VBA code already removed from the workbook. Look for an earlier macro-enabled copy or a backup.
What if the macros are missing in Excel Safe Mode too?
An add-in is less likely to be responsible. Check the workbook's VBA modules and PERSONAL.XLSB, then inspect an earlier version if the code is missing or the project appears damaged.
Could the switch to 64-bit Excel affect my macros?
Some VBA code that calls Windows APIs may need updated declarations for 64-bit Excel. Inspect the code in the Visual Basic Editor; the architecture change alone should not remove the VBA modules.




