Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Saving All Open Workbooks.

Saving All Open Workbooks

by Allen Wyatt
(last updated October 26, 2015)

5

If you work with lots of workbooks open at the same time, you know that it can be a pain to go through and save each of the open workbooks, in turn. Wouldn't it be great to have a single command that allowed you to save all the open workbooks, without the need to do it manually?

Unfortunately, there isn't such a command. The closest solution is to hold down the Shift key as you click the File menu, then choose Close All. In the process of closing, Excel will ask if you want each workbook saved.

The big drawback to this is that Excel closes and you need to again start Excel and open all your workbooks. If you want a true Save All command, you need to create it using a macro. The following is a good example of one you could use:

Sub SaveAll()
    Dim Wkb As Workbook
    For Each Wkb In Workbooks
        If Not Wkb.ReadOnly And Windows(Wkb.Name).Visible Then
            Wkb.Save
        End If
    Next
End Sub

Save the macro in your Personal workbook, assign it to a toolbar button or a shortcut key, and you can call it up as often as you like. It saves all the workbooks that are open, except those that are read-only or hidden.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3307) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Saving All Open Workbooks.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Finding Formatted Bulleted Paragraphs

Want to find the bulleted paragraphs within a large document? Word doesn't have a built-in way to search for this formatting. ...

Discover More

Copying a Worksheet

Need to make a copy of one of your worksheets? Excel provides a few different ways you can accomplish the task.

Discover More

Table Header Rows after a Manual Page Break

Insert a manual page break into the middle of a table, and you may find that subsequent pages of the table don't always look ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Saving Worksheets in Lotus 1-2-3 Format

You can export an Excel worksheet in a variety of formats. One of those formats is Lotus 1-2-3, which is available as an ...

Discover More

Protecting Excel Files from Word

Office easily allows you to use Word to open an Excel document. Doing so, however, can quickly result in and unusable ...

Discover More

Importing Huge Data Files

Sometimes, when importing data created by other programs, you may find that there is too much for Excel to handle. Here's how ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 5 + 0?

2016-06-02 01:42:02

Vicki

Many thanks, much needed.


2016-04-19 09:58:22

Vanamali

Try to Save Workspace from View tab. This would save all the currently open worksheets and also let you save all the unsaved workspace, without closing any of the worksheets.
One more advantage is, even if you close all the tabs, you could open all the above worksheets by opening the workspace file .xlsw


2016-03-31 14:32:56

Stephen Golden

Thanks for the tips for newer versions of Excel! I just upgraded to 2016 from 2003, and I'm amazed at how many useful features are either hidden or gone completely. I implemented the SaveAll macro, and I must have done something squirrelly because, even though it saves all the open workbooks, it leaves PERSONAL.XLSB open. Do you know what I did wrong and how I can fix it?


2015-12-28 16:10:43

Rick Bajackson

Mr. Wyatt,

Thanks a lot for your tip on how to save all the open Excel spreadsheets with one command. I've been a user of Excel and prior to that Multiplan for a long time but missed the "upgrade" where MS decided that having one command to save all the open spreadsheets was a "waste of space".

Once again, thanks for the effort and then publishing your macro.


2011-12-03 15:42:52

Ivan

Hi,

Very useful macro. I immediately transferred it into my growing library that I have maintained for many years. I had other workbook-related macros, but not an explicit SaveAll. The SaveAll is very elegant.

My library started with a macro from 'Source Wrox, John Green: Excel 2000 VBA, Chapter 12, Page 207' as an example. I still use the book although I am on Excel 2010.

You may be interested that after a 32 year career with IBM in system development and retiring 23 years ago, I switched to Apple, and am running Windows 7 under Apple's OS X Lion, on a 17" MacBook Pro.

A non-related question: More than a decade ago I changed over to the R1C1 notation in Excel, and would never consider going back to the A1 notation. How do you feel about R1C1? I don't know whether anybody is using it. A thread on this subject would be interesting.

Ivan R.


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.