Compartir a través de


Revisions.AcceptAll Method

Word Developer Reference

Accepts all the tracked changes in a document or range, removes all revision marks, and incorporates the changes into the document.

Syntax

expression.AcceptAll

expression   Required. A variable that represents a Revisions collection.

Remarks

Use the AcceptAllRevisions method to accept all revisions in a document.

Example

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

Visual Basic for Applications
  If ActiveDocument.Revisions.Count >= 1 Then _
    ActiveDocument.Revisions.AcceptAll

This example accepts all the tracked changes in the selection.

Visual Basic for Applications
  Selection.Range.Revisions.AcceptAll

See Also