Undo Method

Home Page (Objects)OverviewFAQReference

Applies to: Document object, TextDocument object

Reverses previous editing actions on a document.

Syntax

object.Undo

Parameters

object

An expression that evaluates to a Document object or a TextDocument object.

Return Values

The Undo method returns one of the following values:

Remarks

Use the Redo method to reapply editing actions that have been undone.

The Undo method has no effect on a document with the Generic type.

Example

The following example reverses previous editing actions on a document:

ActiveDocument.Undo