Share via


Revision Object

Revision Object
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.


Aa679631.parchild(en-us,office.10).gifRevision
Aa679631.space(en-us,office.10).gifAa679631.parchild(en-us,office.10).gif

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 "