Reverses the last operation
Syntax:
Sub Undo(Optional ByVal Levels As Long = 0)
Parameters:
Name Type Description
Levels
Long
Remarks:
The Undo method reverses the last operation performed in the active document.
Examples:
The following VBA example reverses the last operation in the active document.
Sub Reverse()
ActiveDocument.ActiveLayer.CreateArtisticText 0, 0, "Text"
ActiveDocument.Undo 
End Sub