expression.UndoClear
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
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").
Example
This example clears the list of actions that can be undone for the active publication.
ActiveDocument.UndoClear