VBA & Macro Problems

How to Fix Excel Deleting Macros or Failing to Save XLSB Files

Nimra MalikNimra Malik Oct 29, 2026 869 views

Question details

Users experience Excel taking a long time to save XLSB files, ultimately failing to save, or VBA modules appearing blank, indicating potential macro-enabled workbook damage.

How to Fix Excel Deleting Macros or Failing to Save XLSB Files
Product
Microsoft Excel
Device & OS
not provided
Scenario
Saving an XLSB (Excel Binary Workbook) file containing VBA macros.
Observed behavior
Excel takes several minutes to save and then reports a save failure. VBA modules may appear blank or fail to load completely.
Before you start

Ensure you have a backup copy of your damaged XLSB file stored in a different location before attempting any repairs, and verify that your system is not actively running a background antivirus scan on the file.

Solution 1Recommended

Run Excel in Safe Mode and Check Add-ins

Starting Excel in Safe Mode bypasses add-ins, helping identify if a third-party plugin is blocking the macro saving process.

Incompatible or outdated COM add-ins are a common cause of Excel hanging or failing during the save process for binary and macro-enabled workbooks.

1
Open Run Dialog

Press the Windows key + R simultaneously to open the Run dialog box.

2
Launch Excel in Safe Mode

Type 'excel /safe' in the Run box and press Enter to open Excel without any add-ins loaded.

3
Test File Saving

Open your problematic XLSB file and attempt to save it. If it saves successfully without deleting the macros, an add-in is likely the cause.

4
Disable Problematic Add-ins

Go to File > Options > Add-ins. Select 'COM Add-ins' from the Manage drop-down at the bottom and click Go. Uncheck all add-ins, click OK, and restart Excel normally to see if the issue is resolved.

Run Excel in Safe Mode and Check Add-ins
Tip: If disabling all add-ins fixes the problem, re-enable them one by one to pinpoint the exact add-in causing the failure.
Free Microsoft Office alternative

Switch to WPS Office to Manage Spreadsheets Seamlessly

If Microsoft Excel continues to crash, freeze, or fail when handling macro-enabled workbooks, consider switching to WPS Office. It provides a highly compatible spreadsheet application designed to handle complex data and large files effortlessly.

Highly compatible with Microsoft Excel formats including XLS, XLSX, and CSV.Lightweight design ensures fast loading and saving times without hogging system memory.Familiar user interface allows you to transition your workflow instantly.Completely free to download with powerful built-in data analysis tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why do my VBA modules suddenly appear blank in Excel?

Blank VBA modules usually indicate that the workbook has become corrupted, or your Microsoft Office installation files are damaged. This can also happen if an overzealous antivirus program quarantines the macro code. Running an Office repair or opening the file in Safe Mode can help diagnose the root cause.

What is an XLSB file and why does it take so long to save?

An XLSB file is an Excel Binary Workbook. It stores data in a binary format, which is generally faster and smaller than an XLSX file. If it takes a long time to save, it may be due to complex looping macro scripts, corrupted COM add-ins, or excessive workbook calculation overhead.

Can an Excel add-in prevent me from saving a macro-enabled workbook?

Yes, outdated or incompatible COM add-ins can severely interfere with Excel's saving process, particularly for files containing VBA code. Disabling all add-ins via Excel's Safe Mode is a standard diagnostic step to see if normal saving functionality returns.