Revision Object

Microsoft Word Visual Basic

Revision Object

Revisions Revision
Multiple objects

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.

Using the Revision Object

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.

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.

ActiveDocument.TrackRevisions = True
Selection.InsertBefore "Action "