SyncScrollingSideBySide Property

Microsoft Word Visual Basic

SyncScrollingSideBySide Property

True enables scrolling the contents of the windows at the same time. False disables scrolling the windows at the same time.

expression.SyncScrollingSideBySide

expression    Required. An expression that returns a Windows collection.

Example

The following example enables scrolling of adjacent windows at the same time.

    Dim objDoc1 As Word.Document
Dim objDoc2 As Word.Document
    
Set objDoc1 = Documents.Add
Set objDoc2 = Documents.Add

objDoc2.Activate
objDoc2.Windows.CompareSideBySideWith objDoc1
Windows.ResetPositionsSideBySide
Windows.SyncScrollingSideBySide = True