Return Value

Example

Sub UndoExample()
' Create a new text file.
DTE.ItemOperations.NewFile("General\Text File")
If Not DTE.ActiveDocument.Undo Then
MsgBox("There are no actions to undo.")
Else
MsgBox("Actions undone.")
End If
End Sub