
Tips.Net > ExcelTips Home > General > Quickly Changing Windows
Summary: Word proves several keyboard shortcuts that allow you to cycle through the open workbook windows on your screen. There is no similar “cycling” method for those using a mouse, unless you implement the macro discussed in this tip. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
If you routinely use several open workbooks to do your work, you already know that you can change between workbook windows by choosing the workbook name from the Window menu. You may not know, however, that there is a shortcut for changing windows. You can cycle through your documents by pressing either Ctrl+F6 or Shift+Ctrl+F6. The difference is that Ctrl+F6 cycles through the list of windows in a forwards direction, while Shift+Ctrl+F6.
If you would rather not take your hands off the mouse, you can create a macro which cycles through the windows. This macro can then be assigned to a button on one of your toolbars. The following macro will do the trick:
Sub ChangeWin()
On Error GoTo ChangeWinErr
Set nw = ActiveWindow.ActivateNext
If Windows.Count > 1 Then
nw.Activate
Exit Sub
End If
ChangeWinErr:
Windows(1).Activate
End Sub
Tip #2078 applies to Microsoft Excel versions: 97 2000 2002 2003
More Power! Expand your skills and make Excel really sing! It's all possible with macros. The best resource anywhere for macros is ExcelTips: The Macros. Check it out today!
No, not that type of date. If you need to do any types of work with calendar dates, Excel has the tools you need. Learn how to use those tools the easy way. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site