Class Revision (Word VBA)
The class Revision 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.
Class Selection gives access to class Revision.
Dim rvs as Revision
Set rvs = ActiveDocument.Range.Revisions(Index:=1)
For Each
Here is an example of processing the Revision items in a collection.
Dim rvs As Revision
For Each rvs In ActiveDocument.Range.Revisions
Next rvs
Methods
Accept - Accepts the specified tracked change, removes the revision mark, and incorporates the change into the document.
Reject - Rejects the specified tracked change. The revision marks are removed, leaving the original text intact.
Properties
Author returns the name of the user who made the specified tracked change.
Cells returns a Cells collection that represents the table cells that have been marked with revision marks.
Date the date and time that the tracked change was made.
FormatDescription returns a String representing a description of tracked formatting changes in a revision.
Index returns a Long that represents the position of an item in a collection.
MovedRange returns a Range object that represents a range of text that was moved from one place to another in a document with tracked changes.
Range returns a Range object that represents the portion of a document that's contained within a revision mark.
Style returns a Style object that represents the style associated with a revision mark.
Type returns the revision type.
Related Classes
Cells - A collection of Cell objects in a table column, table row, selection, or range.
Range - Represents a contiguous area in a document. Each Range object is defined by a starting and ending character position.
Style - Represents a single built-in or user-defined style. The Style object includes style attributes (such as font, font style, and paragraph spacing) as properties of the Style object. The Style object is a member of the Styles collection. The Styles collection includes all the styles in the specified document.