Export (0) Print
Expand All
Expand Minimize

Range.Revisions Property

Office 2007
Returns a Revisions collection that represents the tracked changes in the range. Read-only.

Syntax

expression.Revisions

expression   A variable that represents a Range object.

Remarks

For information about returning a single member of a collection, see Returning a Single Object from a Collection.

Example

This example displays the number of tracked changes in the first section in the active document.

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

This example accepts all tracked changes in the first paragraph in the selection.

Visual Basic for Applications
Set myRange = Selection.Paragraphs(1).Range
myRange.Revisions.AcceptAll



Community Additions

ADD
Show:
© 2014 Microsoft