Ctrl + SSave before closingPressing Ctrl+S before Ctrl+W lets you skip the save dialog and close immediately.
Tip: The safest pattern: 'save regularly with Ctrl+S, close with Ctrl+W at the end.'
Ctrl+W closes just the workbook and keeps Excel running. Alt+F4 quits the entire application. In real-world work with multiple files open, knowing this distinction makes your operations significantly safer.
Shortcuts you will master in this article
Ctrl + W / Ctrl + S
Pressing Alt+F4 while multiple workbooks are open closes all of them and quits Excel. Save dialogs do appear, but with multiple files open, it's easy to miss one.
Using Ctrl+W closes files one at a time and prompts you to save if there are unsaved changes. This significantly reduces the risk of accidentally closing a file you didn't intend to.
Covers the pre-close save check and how to differentiate Ctrl+W from Alt+F4.
Ctrl + SSave before closingPressing Ctrl+S before Ctrl+W lets you skip the save dialog and close immediately.
Tip: The safest pattern: 'save regularly with Ctrl+S, close with Ctrl+W at the end.'
Ctrl + WClose only the current workbookExcel stays open and all other workbooks remain unaffected.
Tip: Useful for closing a file you opened temporarily for reference.
Unsaved changes trigger a save dialogConfirm whether to saveIf there are unsaved changes, a 'Save changes?' dialog appears. Press Enter to save, or Alt+N to discard.
Tip: When you want to close without saving, Alt+N (No) confirms the choice.
Alt + F4Quit the Excel application entirelyUse Alt+F4 when you're done with all your work. If any files have unsaved changes, a confirmation dialog will appear.
Tip: Keeping the roles of Ctrl+W and Alt+F4 distinct in your mind prevents accidental closures.
Excel Shortcut Practice
Reading alone won't make them stick. Use KeyboardGym's Excel practice mode to actually type the shortcuts from this article and build lasting muscle memory.
Visit each shortcut detail page to see key positions and usage tips.
| Key | Action |
|---|---|
Ctrl + W | Close Workbook |
Ctrl + S | Save |
F12 | Save As |
A. Usually not. However, if an AutoRecover file exists, you may be able to restore it from File → Info → Manage Workbook.
A. In Excel, both close the current workbook. Ctrl+W is more widely applicable across applications, making it easier to remember.
A. You can press Ctrl+W repeatedly, or use Alt+F4 to quit the application. Either way, watch out for save dialogs on each file.
A. Reading alone won't make them stick. Use KeyboardGym's Excel practice mode to actually type the keys and switch between difficulty, category, and review practice for faster retention.