How to Fix Excel Closes Unexpectedly with Error Message
Question details
The user experiences sudden crashes in Microsoft Excel, accompanied by an error message stating the program has encountered an error.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Working on or opening an Excel workbook when the application suddenly crashes.
- Observed behavior
- Excel closes unexpectedly without warning, displays a generic error message, and the built-in repair prompt may fail to resolve the issue.
Before troubleshooting, ensure you have saved any open files in other Office applications and check if your Windows operating system has any pending updates.
Start Excel in Safe Mode and Disable Add-ins
Running Excel in Safe Mode helps identify if a third-party add-in is causing the application to crash unexpectedly.
Add-ins can sometimes conflict with Excel's core operations, leading to sudden closures. Safe Mode bypasses these add-ins, allowing you to isolate the problematic extension.
Press the Windows key + R simultaneously on your keyboard to open the Run window.
Type 'excel /safe' in the box and press Enter. If Excel opens successfully without crashing, an add-in is likely the culprit.
Go to File in the top-left corner, click Options, and select Add-ins from the left sidebar.
At the bottom of the window, change the Manage dropdown to 'COM Add-ins' and click Go. Uncheck all add-ins and click OK, then restart Excel normally to see if the issue is resolved.

Repair Microsoft Office from Windows Settings
If installation files are corrupted, using the built-in Windows repair tool for Microsoft 365 can fix the crashing issue.
Update or Reinstall Microsoft Office
Outdated software can cause unexpected errors. Updating or reinstalling Office ensures you have the latest bug fixes.
Try WPS Office When Excel Keeps Crashing
If Microsoft Excel continues to close unexpectedly and standard repair tools fail, consider switching to WPS Office. It is a highly compatible, free, and lightweight alternative that opens your existing spreadsheets without the frustration of constant crashing.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for Windows.
- 2. Install the software: Run the installer and follow the on-screen instructions to complete the setup in minutes.
- 3. Open your Excel files: Launch WPS Spreadsheet and open your existing .xlsx files seamlessly to resume your work without data loss.

Frequently Asked Questions
Why does Excel say it has encountered an error and needs to close?
This error is typically caused by conflicting third-party add-ins, corrupted Office installation files, outdated software, or interference from background antivirus programs.
Will I lose my data if Excel closes unexpectedly?
If AutoRecover is enabled in your settings, Excel will attempt to save a backup of your work. You can usually recover it by reopening Excel and checking the Document Recovery pane that appears on the left side.
How do I open a corrupted workbook that is causing Excel to crash?
Open Excel first without opening the file. Go to File > Open, select your corrupted file, click the small arrow next to the Open button at the bottom, and choose 'Open and Repair' to attempt data recovery.
What should I do if the Microsoft Office repair tool also fails?
If the repair tool fails, it indicates severe corruption in the installation files. You will need to completely uninstall Microsoft Office, ideally using the Microsoft Support and Recovery Assistant tool, and then reinstall a fresh copy from your Microsoft account.




