Selection.NextRevision Method
Word Developer Reference |
Locates and returns the next tracked change as a Revision object.
Syntax
expression.NextRevision(Wrap)
expression Required. A variable that represents a Selection object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Wrap | Optional | Variant | 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
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.
Example
This example rejects the next tracked change found after the fifth paragraph in the active document. The revTemp
variable is set to Nothing if a change is not found.
Visual Basic for Applications |
---|
|
This example accepts the next tracked change found if the change type is inserted text.
Visual Basic for Applications |
---|
|
This example finds the next revision after the current selection made by the author of the document.
Visual Basic for Applications |
---|
|
See Also