How to Add an Exit Command to Microsoft Word or Excel
Question details
The user wants to configure a specific command or shortcut to exit Microsoft Word or Excel entirely, rather than closing documents one by one.

- Product
- Microsoft Word and Excel
- Device & OS
- not provided
- Scenario
- Customizing the application interface or keyboard shortcuts to improve workflow efficiency when managing multiple open documents.
- Observed behavior
- The default Close command only closes the active document or workbook, leaving the application shell running and requiring multiple clicks to fully exit.
Ensure you have saved your work before testing exit commands, and verify that your system administrator allows Quick Access Toolbar customizations if you are using a work computer.
Add the Exit Command to the Quick Access Toolbar
Customize your Quick Access Toolbar (QAT) to include a one-click button that completely closes the Word or Excel application.
The Quick Access Toolbar is visible at the very top of the application window. By default, it contains Save, Undo, and Redo. You can easily add the global Exit command to this bar for faster access.
Launch Microsoft Word or Excel, click on the File tab in the top-left corner, and select Options at the bottom of the left-hand menu.
In the Options dialog box, click on Quick Access Toolbar in the left navigation pane.
Under the Choose commands from drop-down menu, select All Commands to reveal the complete list of available actions.
Scroll through the alphabetical list, click on Exit, and then click the Add button in the middle to move it to your customized toolbar list. Click OK to save your changes.

Create a Custom Keyboard Shortcut
Map a specific key combination to the Exit command for faster application closing without using the mouse.
Try WPS Office for a Seamless, Tabbed Document Experience
If you are tired of managing multiple individual windows in Microsoft Office, WPS Office offers a free, lightweight alternative. Its modern tabbed interface allows you to handle Word, Excel, and PowerPoint files in a single window, meaning you can exit the entire application and close all documents simply by clicking the main window's close button.
- 1. Download the Software: Visit the official WPS website and download the free installer for your operating system.
- 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
- 3. Open Your Documents: Launch WPS Office and open your existing Microsoft Office files with perfect formatting preservation.

Frequently Asked Questions
Why does the X button only close the current document in Excel?
By default, newer versions of Excel open each workbook in its own window (known as Single Document Interface). Clicking the X in the upper right corner closes only that specific window. To close all workbooks at once, you must use the Exit command.
Can I use macros to close Excel completely?
Yes, you can create a simple VBA macro using the 'Application.Quit' command and assign it to a button on your Quick Access Toolbar or a keyboard shortcut for a fully customized exit method.
Is the Exit command available in Office 365?
Yes, the Exit command is still available in the 'All Commands' list within the Quick Access Toolbar settings for Microsoft 365 applications, even though it may be hidden from the default File menu.




