Windows.CompareSideBySideWith Method (Word)

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

Syntax

expression .CompareSideBySideWith(Document)

expression Required. A variable that represents a Windows collection.

Parameters

Name

Required/Optional

Data Type

Description

Document

Required

Variant

The document to view in side by side windows.

Return Value

Boolean

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

See Also

Concepts

Windows Collection Object

Windows Object Members