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: Tying Workbooks Together.
by Allen Wyatt
(last updated March 30, 2018)
Don wonders if there is a way to "tie" two or more workbooks together so they are always open (and closed) at the same time. One relatively easy way to get close to this desire is to create, within Excel, what is called a workspace. You can do this by following these general steps:
That's it; Excel creates a workspace file that includes information about the workbooks you currently have open. Later, when you want all the workbooks open, you can simply open the workspace file (it has an xlw extension) and all the workbooks that make up that file are opened.
While this is a great way to open all the workbooks you need at one time, it doesn't answer the requirement of always having those workbooks be open. For instance, your workspace may include five workbooks, but once opened you can easily close one, two, or more of the individual workbooks in the workspace. The requirement that it be "all or nothing" for the member workbooks isn't met.
If you want to make sure that all the requirements are met, then the only way you can do it is to use a macro. You could include a Workbook_Open event-handler macro in all five of the workbooks that checked to see if the other workbooks in the group were open or not. If they weren't, then the macro could open them. You would also need to create a Workbook_BeforeClose event handler that would make sure that all the other workbooks in the group were closed.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8144) 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: Tying Workbooks Together.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
This tip presents two techniques you can use to print multiple workbooks all at the same time. Both techniques involve ...Discover More
All good things must come to an end at some point. When you are done sharing your workbook with others, this is how you ...Discover More
Have you ever opened a workbook, only to have it not display your worksheet data? This can be very disconcerting, but it ...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 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.