VBA & Macro Problems

Fix Missing Excel Macros and Find the XLStart Folder

Steven ParkerSteven Parker Nov 18, 2026 869 views

Question details

The user needs to find previously available macros and locate Excel's XLStart folder.

Fix Missing Excel Macros and Find the 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.
Before you start

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.

Solution 1Recommended

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.

1
Check the file format

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.

2
Inspect the VBA project

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.

3
Check the Macro dialog

Return to Excel and select View > Macros > View Macros. Check the “Macros in” selection and choose the relevant open workbook or All Open Workbooks.

4
Review security notices

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.

Check the workbook and VBA project for missing macros
64-bit compatibility: A switch to 64-bit Excel can require changes to VBA declarations that call Windows APIs, but it does not by itself explain why VBA code is absent from a project.
Free Microsoft Office alternative

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.

Open and edit Microsoft Excel formats, including XLSX and XLS filesUse familiar spreadsheet tools for everyday workbook editingMove existing Office documents into a lightweight office suiteWork across spreadsheets, documents, and presentations in one application
QA img-9

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.