Partager via


Revisions.RejectAll Method

Word Developer Reference

Rejects all the tracked changes in a range. The revision marks are removed, leaving the original text intact.

Syntax

expression.RejectAll

expression   Required. A variable that represents a Revisions collection.

Remarks

Use the RejectAllRevisions method to reject all revisions in a document. Formatting changes cannot be rejected.

Example

This example rejects all the tracked changes in the active document.

Visual Basic for Applications
  ActiveDocument.Revisions.RejectAll

This example rejects all the tracked changes in the selection.

Visual Basic for Applications
  Dim rngTemp As Range

Set rngTemp = Selection.Range

rngTemp.Revisions.RejectAll

See Also