CompareSideBySideWith Method

Microsoft Word Visual Basic

CompareSideBySideWith Method

Opens two windows in side by side mode. Returns a Boolean.

expression.CompareSideBySideWith(Document)

expression    Required. An expression that returns one of the objects in the Applies To list.

Document    Required Variant. The document to view in side by side windows.

Remarks

You cannot use the CompareSideBySideWith method with the Application object or the ActiveDocument property.

Example

The following example places two new documents in adjacent windows.

    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