Microsoft KB Archive/85177

{|
 * width="100%"|

Excel: Window Menu Does Not Show All Sheets in a Workbook

 * }

-

The information in this article applies to:


 * Microsoft Excel for Windows, version 4.0
 * Microsoft Excel for the Macintosh, version 4.0

-

SUMMARY
Microsoft Excel will only list windows on the Window menu if they are open on the desktop. When you are using Workbooks, the Window menu may only partially correspond to the documents listed in the Workbook Contents window. The best way to switch from one document to another in a workbook is to click the Workbook Contents icon in the lower-right corner of the document, and then double-click the desired document name.

MORE INFORMATION
If you would like your workbook documents to appear on the Window menu or if you would like to arrange them in order to see more than one document at a time, switch to the Workbook Contents window, select the desired document, and choose the New Window command from the Window menu. Repeat these steps for other workbook documents as needed.

You can also hold down CTRL in Microsoft Excel for Windows or COMMAND in Microsoft Excel for the Macintosh, and you can double-click the document in the Workbook Contents window.

An alternate method is available by using the following macro which sequentially activates each workbook file and then arranges all of them.

Microsoft provides macro examples for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This macro is provided 'as is' and Microsoft does not guarantee that the following code can be used in all situations. Microsoft does not support modifications of the code to suit customer requirements.

  A1:  Arrange_Workbook A2: =WORKBOOK.ACTIVATE(,FALSE) A3  =GET.DOCUMENT(1) A4: =COLUMNS(GET.WORKBOOK(1)) A5: =FOR(&quot;x&quot;,1,A4) A6: =ACTIVATE(A3) A7: =WORKBOOK.ACTIVATE(INDEX(GET.WORKBOOK(1),1,x),TRUE) A8: =NEXT A9: =ARRANGE.ALL A10: =RETURN