Document.UndoClear method (Publisher)

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

Syntax

expression.UndoClear

expression A variable that represents a Document object.

Remarks

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

Example

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

ActiveDocument.UndoClear

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.