Macro to Display Each Sheet in Workbook in a Separate WindowLast reviewed: September 2, 1997Article ID: Q136094 |
The information in this article applies to:
SUMMARYBy default, Microsoft Excel displays a single sheet in the active workbook. The "More Information" section of this article describes two ways you can display each sheet in a workbook in a separate window
MORE INFORMATIONTo display each sheet manually, use the following steps:
Sample Visual Basic CodeMicrosoft provides examples of Visual Basic procedures 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 Visual Basic procedure is provided 'as is' and Microsoft does not guarantee that it can be used in all situations. Microsoft does not support modifications of this procedure to suit customer requirements for a particular purpose.
Sub Tile_Workbook_Sheets() For Each sht In Sheets 'Loop through all sheets in the Workbook sht.Activate 'Activate each sheet in turn ActiveWindow.NewWindow 'Create a new window for each sheet Next sht 'Loop until all sheets are selected Windows.Arrange 'Arrange all windows - defaults to "Tiled" End Sub |
Additional query words: 5.00 5.00c 7.00 howto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |