How to Stop Excel from Closing After Computer Goes to Sleep
Question details
The user needs to prevent Microsoft Excel from unexpectedly closing or crashing when the computer enters or wakes up from sleep mode.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- The computer goes into sleep mode or remains inactive while Microsoft Excel is open.
- Observed behavior
- Excel closes unexpectedly during the sleep or inactive state, which may lead to data loss and increased workbook loading times upon waking.
Save all your active workbooks and completely close any open Office applications before attempting system repairs or updates.
Perform an Online Repair of Microsoft 365
Running the built-in online repair tool can fix corrupted Office installation files that may cause Excel to crash after your computer wakes from sleep.
Microsoft 365 includes a repair utility designed to resolve unexpected application closures. The 'Online Repair' option is highly recommended as it thoroughly reinstalls necessary components.
Click the Start menu or search bar on your taskbar, type 'Control Panel', and press Enter. Ensure your view is set to 'Category'.
Under the 'Programs' section, click on 'Uninstall a program'. Scroll through the list of installed applications and locate 'Microsoft 365'.
Right-click 'Microsoft 365' and select 'Change'. In the window that appears, select 'Online Repair' and click 'Repair'. Confirm the User Account Control prompt by selecting 'Yes'.
Wait for the online repair process to complete, which may take several minutes depending on your internet connection. Once finished, restart your PC to apply the fixes.

Install the Latest Office and Windows Updates
Outdated software can cause compatibility issues with system power states like sleep mode. Updating ensures you have the latest bug fixes.
Experience Stable Performance with WPS Office
If Microsoft Excel continues to crash or close unexpectedly after your computer wakes from sleep, consider switching to WPS Office. It provides a lightweight, stable, and highly compatible alternative that keeps your spreadsheets secure.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite.
- 2. Install and Launch: Follow the installation wizard, then open WPS Spreadsheet.
- 3. Open Your Spreadsheets: Click 'Open' and select your existing .xlsx files to continue working seamlessly.

Frequently Asked Questions
Will I lose my unsaved data if Excel closes during sleep mode?
If AutoRecover is enabled in your settings, Excel may recover your file the next time you launch the application. You can check for recovered files by opening Excel and looking at the Document Recovery pane on the left side of the screen.
Why do Office apps crash when the computer wakes from sleep?
This often happens due to temporary communication failures between your computer's hardware, the Windows power management system, and corrupted Office installation files. Keeping Windows and Office updated usually resolves power-state compatibility bugs.
Is a Quick Repair different from an Online Repair in Microsoft 365?
Yes. Quick Repair fixes minor issues quickly without requiring an internet connection. Online Repair takes longer and completely reinstalls Office files to fix major corruption, which requires an active internet connection.




