Fix Excel 64-Bit VBE7.DLL Crashes When Saving VBA Workbooks
Question details
The user needs to stop 64-bit Excel from crashing in VBE7.DLL when saving a macro-enabled workbook.

- Product
- Microsoft Excel 64-bit
- Device & OS
- not provided
- Scenario
- Saving and reopening a macro-enabled workbook that may contain linked worksheets and VBA code.
- Observed behavior
- Excel crashes in VBE7.DLL while saving; registry changes that force VBA to load from source may appear to prevent the crash.
In Excel, open File > Account to check the installed Office version and update channel. Identify a workbook that reproduces the crash so you can test it after updating.
Update Excel and retest the VBA workbook
Use this first to test the Excel fix for problems saving compiled VBA state.
The crash can occur when Excel fails to save the compiled VBA state correctly and cannot recover when reopening the workbook. A reported fix may also require a registry entry, so updating should be tested before relying on a workaround.
In Excel, select File > Account and review the version and build under Product Information.
Under Update Options, select Update Now and follow the prompts. If updates are managed by your organization, ask your administrator to deploy the latest available build.
Restart Excel, open the affected macro-enabled workbook, and select File > Save. Close and reopen it to check whether the crash returns.
If the crash persists, consult current Microsoft documentation or support for the registry entry applicable to your Office build. Confirm the key, value, and prerequisites before making any registry change.

Work with Excel files in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Microsoft Office formats, making it easier to move everyday workbook work to another suite. It does not repair Excel's VBE7.DLL crash; check macro support before migrating VBA-dependent files.

Frequently Asked Questions
How do I check which Excel build I have?
In Excel, select File > Account and look under Product Information for the version and build. Update Options on the same page lets you check for available updates.
Why can Excel crash when saving a VBA workbook?
One reported cause is a failure to save the compiled VBA state correctly. The affected workbook may also fail to reopen if Excel cannot recover that state.
Should I change CompileOnDemand or ForceVBALoadFromSource?
First update Excel and retest the workbook. If the crash remains, check Microsoft guidance for your exact Office build before changing either registry setting.
Does WPS Office fix the VBE7.DLL crash in Excel?
No. VBE7.DLL is part of the Microsoft VBA environment, so the Excel issue must be addressed through Office updates and applicable Microsoft guidance. WPS Office is an alternative for compatible spreadsheet work.




