This documentation is archived and is not being maintained.

Revision Object

Office 2007
Represents a change marked with a revision mark. The Revision object is a member of the Revisions collection. The Revisions collection includes all the revision marks in a range or document.

Remarks

Use Revisions(Index), where Index is the index number, to return a single Revision object. The index number represents the position of the revision in the range or document. The following example displays the author name for the first revision in section one of the active document.

Visual Basic for Applications
MsgBox ActiveDocument.Sections(1).Range.Revisions(1).Author

The Add method isn't available for the Revisions collection. Revision objects are added when change tracking is enabled. Set the TrackRevisions property to True to track revisions made to the document text. The following example enables revision tracking and then inserts "Action " before the selection.

Visual Basic for Applications
ActiveDocument.TrackRevisions = True
Selection.InsertBefore "Action "



Show: