How to Close All Open Excel Workbooks at Once Without Saving Each Individually
🔍 WiseChecker

How to Close All Open Excel Workbooks at Once Without Saving Each Individually

You have multiple Excel workbooks open and need to close them all quickly. Manually closing each window and clicking ‘Don’t Save’ is time-consuming. Excel provides built-in methods to close all open files in a single action. This article explains the steps to close all workbooks without saving each one individually.

Key Takeaways: Close All Excel Workbooks at Once

  • Alt + F4 with Shift key: Closes the entire Excel application and all its workbooks after prompting you to save.
  • File > Close All: Closes every open workbook window while keeping the Excel application itself running.
  • VBA Macro: Automates the process of closing all workbooks without saving, useful for repetitive tasks.

Methods for Closing Multiple Excel Workbooks

Excel does not have a single ‘Close All Without Saving’ button in the ribbon. The application is designed to protect your data from accidental loss. Therefore, any method to close all workbooks will involve a prompt to save changes, unless you use a macro. The primary goal is to reduce multiple clicks into one consolidated action. You can target closing just the workbooks or the entire Excel program.

Using the Application Close Command

The most direct method is to close the Excel application itself. This action closes all open workbook windows belonging to that instance of Excel. When you use this command, Excel will present a single dialog box that summarizes all unsaved workbooks. This allows you to review and choose ‘Don’t Save’ for all of them at once.

Using the Workbook Close Command

If you want to close all workbooks but keep Excel open, you use a different command. This is helpful if you plan to start a new task immediately. Excel will process each workbook in sequence, but you can bypass the save prompt for each one using a keyboard shortcut during the process.

Steps to Close All Workbooks and Exit Excel

  1. Ensure Excel is the active window
    Click on any part of an Excel workbook window or the Excel icon on your taskbar.
  2. Hold down the Shift key
    Press and hold the Shift key on your keyboard. This key modifies the close command.
  3. Press Alt + F4
    While holding Shift, press the Alt and F4 keys together. This is the standard Windows shortcut to close the active application.
  4. Review the save prompt
    A dialog box titled ‘Microsoft Excel’ will appear. It lists all workbooks that have unsaved changes.
  5. Click ‘Don’t Save’
    Click the ‘Don’t Save’ button. This closes every listed workbook without saving and then exits Excel.

Steps to Close All Workbooks But Keep Excel Open

  1. Go to the File tab
    Click the File tab in the top-left corner of the Excel ribbon to open the backstage view.
  2. Select the Close command
    In the left-hand menu, click ‘Close’. Do not click ‘Exit’ as that will close the application.
  3. Hold Shift and click Close All
    Before you click, press and hold the Shift key on your keyboard. The ‘Close’ button in the menu will change to ‘Close All’. Click ‘Close All’.
  4. Use the keyboard shortcut for ‘Don’t Save’
    Excel will show a save prompt for the first unsaved workbook. Immediately press the ‘N’ key on your keyboard. This stands for ‘No’ or ‘Don’t Save’.
  5. Repeat the shortcut if needed
    If you have multiple unsaved workbooks, Excel will show the next prompt. Press ‘N’ again for each subsequent prompt until all are closed.

Common Mistakes and Limitations

Excel Prompts to Save Despite No Changes

Excel may prompt you to save a workbook even if you made no manual edits. This often happens because a volatile function like NOW() or RAND() recalculated, or a pivot table was refreshed. Excel marks the workbook as ‘dirty’. To avoid this, you can set workbooks to open as read-only or use a macro to close without any prompts.

Shift Key Not Working for Close All

The Shift key trick to change ‘Close’ to ‘Close All’ works in most versions. If it does not, you may have an add-in interfering or be using a custom ribbon. An alternative is to right-click the Excel icon on the Windows taskbar and select ‘Close all windows’. This performs the same action as the application close method.

Losing Data When Closing Without Saving

The ‘Don’t Save’ action is permanent for that session. Any changes made since the last save are lost. Always double-check the list of files in the prompt. If you accidentally close the wrong files, you can use File > Open > Recover Unsaved Workbooks to search for autosaved temporary files, but this is not guaranteed.

Manual Close vs. Macro Close: Key Differences

Item Manual Close (Shift + Close All) VBA Macro Close
User Interaction Requires pressing ‘N’ for each unsaved workbook Can be set to run with zero prompts
Speed Fast for a few files, slower for many Instantaneous regardless of file count
Data Risk Prompts allow a final review High risk of data loss if not coded carefully
Excel State Keeps Excel application open Can be coded to close Excel or keep it open
Setup Required No setup, available in all Excel installations Requires enabling the Developer tab and saving a macro

You can now efficiently close all your Excel workbooks using the Shift key modifier. For frequent use, consider recording a simple macro to automate the process. A useful advanced tip is to assign that macro to a keyboard shortcut like Ctrl + Shift + Q for one-click closing.