Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Saving in Two Locations.
by Allen Wyatt
(last updated September 19, 2015)
Sam asked if there was a way to save the same workbook to two separate locations. For instance, one copy could be saved to the normal network location, and the other to a folder on the local hard drive.
There are any number of ways that this can be done. For instance, you could create your own macro that saves two versions of the same workbook. The macro could be placed on the Quick Access Toolbar and clicked when you want to save both copies. (In other words, you would bypass the normal Save function all together.)
Another approach is to make a small adjustment to how Excel saves the workbook. For instance, the following macro would be added to the ThisWorkbook object for the workbook:
Private Sub Workbook_BeforeSave(ByVal _ SaveAsUI As Boolean, Cancel As Boolean) With ThisWorkbook .SaveCopyAs ("c:\Backups\Backup of " & .Name) End With End Sub
This is an event handler, and it is triggered every time you go to do a save on the workbook. At that point, the macro is executed and a copy of the workbook is saved in the specified path on your local hard drive.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11265) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Saving in Two Locations.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Need to know what the full path name is for the current workbook? With a simple macro you can display the full path name ...Discover More
Open a workbook that someone else is working on, and you won't be able to save your changes back into the same file. ...Discover More
Keeping tabs on the size of a workbook can be important when using Excel. You have a couple of options that will allow ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.