XL: Can't Synchronize Windows By Choosing Arrange AllID: Q119718
|
In Microsoft Excel, you cannot synchronize windows horizontally or vertically by choosing Arrange from the Window menu. However, you can accomplish this by creating a Microsoft Excel or Visual Basic, Applications Edition, macro.
The following macros assume that a second window for the worksheet has
been opened by clicking New Window on the Window menu.
Sub Sync_On()
'Enables horizontal and vertical window synchronization
Application.Windows.Arrange arrangestyle:=xlTiled, _
ActiveWorkbook:=True, synchorizontal:=True, syncvertical:=True
End Sub
Sub Sync_Off()
'Disables horizontal and vertical window synchronization
Application.Windows.Arrange arrangestyle:=xlTiled, _
ActiveWorkbook:=True, synchorizontal:=False, syncvertical:=False
End Sub
Sync_On
' Enables horizontal and vertical window synchronization
=ARRANGE.ALL(1,TRUE,TRUE,TRUE)
=RETURN()
Sync_Off
' Disables horizontal and vertical window synchronization
=ARRANGE.ALL(1,TRUE,FALSE,FALSE)
=RETURN()
Additional query words: 97 sync hsync vsync XL97
Keywords : kbprg xlui xlvbahowto xlmhowto
Version : WINDOWS:97,7.0,5.0,5.0c
Platform : WINDOWS
Issue type :
Last Reviewed: May 17, 1999