EditUndo Method

Cancels the last user-interface action. This method has the same effect as clicking Undo on the Edit menu.

Syntax

expression**.EditUndo**

*expression   *     Required. An expression that returns an Application object.

Remarks

This method undoes only the last action taken by the user before running the macro, and it must be the first line in the macro. It cannot be used to undo Visual Basic commands.

Applies to | Application Object