Can't Synchronize Windows By Choosing Arrange All

Article translations Article translations
Article ID: 119718 - View products that this article applies to.
This article was previously published under Q119718
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

Summary

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.

More information

The following macros assume that a second window for the worksheet has been 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:=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
				


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()

Properties

Article ID: 119718 - Last Review: October 26, 2013 - Revision: 3.0
Applies to
  • Microsoft Excel 97 Standard Edition
Keywords: 
kbnosurvey kbarchive kbprogramming KB119718

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com