Compare Method

Applies To

Document object.

Description

Displays revision marks that indicate where the specified document differs from another document.

Syntax

expression.Compare(Name)

expression Required. An expression that returns a Document object.

Name Required String. The name of the document that the document specified by expression is compared with.

See Also

Revisions property, ShowRevisions property.

Example

This example compares the active document with the document named "First Rev.doc" in the Draft folder. On the Macintosh, use a colon as the path separator (for example, HD:Draft:First Rev).

ActiveDocument.Compare Name:="C:\Draft\First Rev.doc"