_Application.Undo Method
Cancels the last user interface action.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub Undo
'Usage
Dim instance As _Application
instance.Undo()
void Undo()
Remarks
This method undoes only the last action taken by the user before running the procedure. It must be the first line in the procedure.