Can't Synchronize Windows By Choosing Arrange All
This article was previously published under Q119718
This article has been archived. It is offered "as is" and will no longer be updated.
In Microsoft Excel, you cannot synchronize windows horizontally orvertically by choosing Arrange from the Window menu. However, you canaccomplish this by creating a Microsoft Excel or Visual Basic,Applications Edition, macro.
The following macros assume that a second window for the worksheet hasbeen opened by clicking New Window on the Window menu.
Visual Basic Macro
Sub Sync_On() 'Enables horizontal and vertical window synchronization Application.Windows.Arrange arrangestyle:=xlTiled, _ ActiveWorkbook:=True, synchorizontal:=True, syncvertical:=TrueEnd SubSub Sync_Off() 'Disables horizontal and vertical window synchronization Application.Windows.Arrange arrangestyle:=xlTiled, _ ActiveWorkbook:=True, synchorizontal:=False, syncvertical:=FalseEnd Sub
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
Microsoft Excel 4.0 Macro
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()
97 sync hsync vsync XL97 XL
Article ID: 119718 - Last Review: 10/26/2013 04:08:00 - Revision: 3.0
Microsoft Excel 97 Standard Edition
- kbnosurvey kbarchive kbprogramming KB119718