Specifies the end of an undo block. This means that all statements between this call and its corresponding BeginUndo method call will be undone by a single call to the Undo method. This makes it possible for you to combine entire macros into one statement that can be easily undone. Undo blocks can be nested.
Syntax
expression.EndUndo
expression An expression that returns a ChartSpace or Spreadsheet object.