Document.PurgeUndo Method

Visio Automation Reference

Empties the Microsoft Office Visio queue of undo actions.

Version Information
 Version Added:  Visio 5.0

Syntax

expression.PurgeUndo

expression   A variable that represents a Document object.

Return Value
Nothing

Remarks

After calling the PurgeUndo method, no operation performed before the call can be reversed.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the PurgeUndo method to purge the undo list.

Visual Basic for Applications
  
Public Sub PurgeUndo_Example() 
Application.PurgeUndo 

End Sub

See Also