Office Settings & Configuration

How to Add an Exit Command to Microsoft Word or Excel

Ayan MasoodAyan Masood Oct 23, 2026 869 views

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.

How to Add an Exit Command to Microsoft Word or Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Application Options

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.

2
Access Quick Access Toolbar Settings

In the Options dialog box, click on Quick Access Toolbar in the left navigation pane.

3
Filter for All Commands

Under the Choose commands from drop-down menu, select All Commands to reveal the complete list of available actions.

4
Add the Exit Command

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.

Add the Exit Command to the Quick Access Toolbar
Customization Complete: You will now see a new Exit icon at the top of your screen. Clicking it will prompt you to save any unsaved work and then completely close the application.
Free Microsoft Office alternative

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. 1. Download the Software: Visit the official WPS website and download the free installer for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
  3. 3. Open Your Documents: Launch WPS Office and open your existing Microsoft Office files with perfect formatting preservation.
Modern tabbed interface to manage multiple documents efficiently in one window.Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation with minimal system resource consumption.Familiar user interface requiring zero learning curve for easy migration.
QA img-9

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.