Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. 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: Seeing All Open Workbook Names.
Written by Allen Wyatt (last updated November 27, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Excel allows you to open quite a few workbooks at the same time, depending on the amount of memory you have available on your system. For some people it is not unusual to have ten, fifteen, twenty, or more workbooks open, all at once.
Traditionally, the normal method used to switch from one workbook to another is to display the View tab of the ribbon and use the Switch Windows tool to select the desired workbook. If there are more than nine workbooks open and you click the Switch Windows tool, Excel displays an option that says "More Windows." Click the option and you can see a display of all open workbooks. Selecting a workbook from this list ends up in that workbook being displayed.
If you routinely work with many open workbooks, it can be a pain to repeatedly click the Switch Windows tool, click More Windows, and then select which workbook you want to view. It would be much easier if the workbooks were all listed and if you could then select from the list. Unfortunately, Excel doesn't allow you to display more than nine workbooks using the Switch Windows tool. (Nine seems to be a rather arbitrary number, but Microsoft had to set a limit somewhere. Nine is just as good as any other arbitrary limit.) There are, however, some workarounds you can use.
The first workaround is to use the task-switching capabilities of Excel. Just hold down the Alt key as you repeatedly press the Tab key to switch from one window to another. When the desired workbook window is selected, release the Alt key and the actual workbook is displayed.
You can also develop macros to display a list of workbooks, allow you to select one, and then switch among them. The most efficient way to do this is to create a UserForm and attach several macros to it. Follow these steps:
Private Sub ListBox1_Click() Windows(ListBox1.Value).Activate Unload Me End Sub Private Sub UserForm_Activate() Dim wkb As Workbook For Each wkb In Workbooks If Windows(wkb.Name).Visible Then _ ListBox1.AddItem wkb.Name Next End Sub
Sub AllWindows() UserForm1.Show End Sub
Once in Excel, you can assign the AllWindows macro to the Quick Access Toolbar or to a shortcut key. When you then click on the toolbar button or the shortcut key, the UserForm is displayed, showing all the open workbooks. You can then select one, and the UserForm disappears and the selected workbook is displayed.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8449) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Seeing All Open Workbook Names.
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!
When working with copies of workbooks--particularly copies derived from a common ancestor workbook--you may be interested ...
Discover MoreWhen you open a workbook, Excel displays the worksheet that was visible when the workbook was last saved. You may want, ...
Discover MoreThere are two ways you can load a workbook in Excel, and each approach should result in the workbook being loaded ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-11-27 10:56:50
J. Woolley
My Excel Toolbox includes the dynamic array function ListWorkbooks(), which simply lists all open workbooks as an array with 1 row and N columns. You can use it like this for 1 column and N rows:
=TRANSPOSE(ListWorkbooks())
In older versions of Excel you can use it with the SpillArray function like this:
=SpillArray(TRANSPOSE(ListWorkbooks())
If the list is in column A, you can use the SuperLink function in column B to create a hyperlink that will activate a workbook in the list. For example, this formula in cell B7 will hyperlink the workbook listed in cell A7:
=SuperLink("["&A7&"]")
If the workbook has a different path, that must be included in the SuperLink formula.
See https://sites.google.com/view/MyExcelToolbox/
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments