Excel Not Letting You Quit? How to Close It
In this article
If Excel refuses to close, the fix is almost always to deal with the dialog box or background process holding it open. Press Alt+F4 (Windows) or Command+Q (Mac) once more and watch the screen for a hidden "Do you want to save your changes?" prompt, a modal alert, or a cell in edit mode. If nothing appears, force the window closed, then end the leftover Excel process so the next launch starts clean. In most cases the workbook is fine; only the application is stuck. The steps below work through the problem from the safest option to the most forceful, with the last resort being a restart of the machine itself. Menu labels can differ slightly by version, device and region, so treat the exact wording in your own copy of Excel as the authority.
What You'll Need
- The Excel window that will not close, with any unsaved work in mind
- Knowledge of whether the workbook is saved to OneDrive, SharePoint or a local drive
- Windows: Task Manager (press Ctrl+Shift+Esc)
- Mac: Force Quit (press Command+Option+Esc)
- Any add-ins you know are installed, in case one is the culprit
Step-by-Step
- Look for a hidden dialog. Excel will not close while it is waiting for an answer from you. Minimise other windows, or use the taskbar (Windows) or Mission Control (Mac) to see whether a small prompt sits behind the spreadsheet. A save prompt, a circular-reference warning, a link-update notice or a printer error all block exit until you click a button. Click it, then try closing again.
- Press Escape, then close again. A cell in edit mode (a blinking cursor inside the formula bar) keeps Excel busy. Press Esc once or twice to leave edit mode, click any other cell, and then press Alt+F4 or Command+Q.
- Try a second close command. Click the X in the top-right corner (Windows) or the red close button (Mac). If the window dims and a message appears asking whether to save, choose Save or Don't Save depending on what you want, and the window should go.
- Save your work first if you can. Before forcing anything, press Ctrl+S (Windows) or Command+S (Mac). If Excel responds, your data is safe and the remaining steps cannot cost you anything. If the save itself hangs, note the filename and location so you can find the backup later.
- Force close Excel. On Windows, open Task Manager, find Microsoft Excel under Apps, select it and choose End task. On Mac, open Force Quit from the Apple menu or press Command+Option+Esc, select Microsoft Excel and click Force Quit. This discards unsaved changes in that session, so only do it after you have tried saving.
- Check for a second window. Force-quitting one window can leave another workbook open in the background. Look at the taskbar or the Dock: if an Excel icon remains, click it to bring the remaining window forward and close that one too, or repeat the force close.
- Recover anything you lost. Reopen Excel. If it offers a Document Recovery pane, choose the version with the most recent timestamp and use Save As to keep it. Excel also keeps AutoRecover copies; on Windows look in File > Info for the manage-versions section, and on Mac use the AutoRecover folder path shown in Excel's preferences.
- Disable add-ins that may be blocking exit. Reopen Excel, go to the add-ins manager (File > Options > Add-ins on Windows, Tools > Excel Add-ins on Mac), and turn off third-party add-ins one at a time, closing Excel fully after each change. If it closes cleanly with an add-in off, you have found the cause; check with the add-in's maker for an update before re-enabling it.
- Update Office. Open Excel, then use File > Account > Update Options > Update Now on Windows, or the Microsoft AutoUpdate app on Mac. Outdated builds sometimes hang on exit, and an update replaces the affected files.
- Restart the computer. This clears every stuck process, including any Excel instance Task Manager could not end and any sync client holding the file. Shut down fully rather than sleeping, then reopen Excel and confirm it closes normally.
Common Mistakes
Force-closing before saving. End task and Force Quit throw away unsaved edits, and recovery is not guaranteed. Always try Ctrl+S or Command+S first, even if it takes a moment.
Clicking the X repeatedly. Each click on an unresponsive window can queue another close request, which makes the freeze look worse and can trigger a "not responding" state. Click once, wait a few seconds, then change approach.
Assuming the file is corrupt. A workbook that will not close is usually a stuck application or a blocking dialog, not damaged data. Do not create a new copy or move the file until you have confirmed Excel behaves normally with other workbooks.
Closing from the taskbar preview. On Windows, hovering the taskbar icon and clicking the small X on the preview can behave differently from the window's own close button and may leave a ghost process. Use the window itself or Task Manager.
Leaving a sync client running. If the workbook sits in a OneDrive or SharePoint folder, the sync engine can hold the file open. Pause syncing before force-closing and resume it afterwards.
Tips
Give Excel a second or two after clicking close. Large workbooks with many formulas or external links take time to write to disk, and users often assume a hang when the app is simply finishing.
Turn on AutoSave for files stored in OneDrive or SharePoint. It saves continuously, so a forced close costs you at most the last few seconds of typing.
If the same workbook hangs every time, test with a blank workbook. If blank files close fine, the problem lives in that specific file, likely in links, volatile formulas or a linked data source.
Keep a habit of closing workbooks individually with Ctrl+W (Windows) or Command+W (Mac) rather than closing the whole application. It makes clear exactly which file is refusing to go, which saves time next time.
On Windows, check whether the window is running as an administrator. A copy launched with elevated rights behaves differently and can be harder to end from a normal Task Manager session.
Troubleshooting
The window will not respond to any click at all. Give it ten to fifteen seconds; Windows may show "not responding" briefly while Excel writes the file. After that, use Task Manager or Force Quit as above.
Task Manager cannot end the process. Expand the Excel entry to see every child window. If one refuses to end, restart the computer.
Excel reopens itself immediately after closing. Something is launching it on startup. Check the Windows Startup apps list or Mac Login Items and disable any Office-related entry you did not add intentionally.
The save prompt keeps returning. This usually means a calculation error or a blocked link update. Choose Don't Save, then reopen and use File > Info to inspect the workbook for broken links before editing again.
You lost work after a forced close. Open the recovery pane on next launch, or look for AutoRecover files in the folder Excel lists in its options. If nothing appears, the file was likely never saved to a recoverable copy.
It only happens with one file. Open a copy of that workbook and use the repair option when prompted. If repair does not help, copy the cells into a new, blank workbook and save under a new name.
Frequently Asked Questions
Why does Excel say it is not responding when I close it?
Excel is finishing a background task such as saving, recalculating or waiting on a dialog. A short pause is normal; a permanent freeze needs a force close.
Will I lose my data if I force close Excel?
Only edits made since the last save are at risk, and AutoRecover may have a copy. Save first whenever the app responds.
Does closing the window close the whole app?
On Windows, closing the last workbook window does close Excel. If other workbooks remain open, only that window closes.
Can a printer cause Excel to hang on exit?
Yes. A default printer that is offline or unreachable can stall printing-related tasks. Set a working default printer and try again.
Should I reinstall Office to fix this?
No, not first. Work through closing hidden dialogs, force quit, add-ins and updates before repairing the installation, and only reinstall if the problem persists across all workbooks.
Why does Excel open again after I close it?
Usually a startup item or a sync client is relaunching it. Check the operating system's startup list before changing anything inside Excel.