Selection.NextRevision Method

Locates and returns the next tracked change as a Revision object.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function NextRevision ( _
    ByRef Wrap As Object _
) As Revision
'Usage
Dim instance As Selection
Dim Wrap As Object
Dim returnValue As Revision

returnValue = instance.NextRevision(Wrap)
Revision NextRevision(
    ref Object Wrap
)

Parameters

  • Wrap
    Type: System.Object%
    Optional Object. True to continue searching for a revision at the beginning of the document when the end of the document is reached. The default value is False.

Return Value

Type: Microsoft.Office.Interop.Word.Revision

Remarks

The changed text becomes the current selection. Use the properties of the resulting Revision object to see what type of change it is, who made it, and so forth. Use the methods of the Revision object to accept or reject the change.

If there are no tracked changes to be found, the current selection remains unchanged.

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace