UndoClear Method

Applies To

Document object.

Description

Clears the list of actions that can be undone for the specified document. Corresponds to the list of items that appears when you click the arrow beside the Undo button on the Standard toolbar.

Note Include this method at the end of a macro to keep Visual Basic actions from appearing in the Undo box (for example, "VBA-Selection.InsertAfter").

Syntax

expression.UndoClear

expression Required. An expression that returns a Document object.

See Also

Undo method.

Example

This example clears the list of actions that can be undone for the active document.

ActiveDocument.UndoClear