View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Otto Moehrbach[_3_] Otto Moehrbach[_3_] is offline
external usenet poster
 
Posts: 31
Default Undo & ErrorHandler

Excel 2002, Win XP
I have noticed in these NGs that when an Undo command is issued (in
code) that an Error Handler routine is often used. That is, a statement
like:
On Error GoTo ErrHandler
is put before the Undo command.
Or something like:
If Sheets(xlsName).CanUndo Then.....
I can understand doing this if the Undo capability is in question.
My question regards the need for the above in the specific situation where
the code containing the Undo command is triggered by a Worksheet_Change
event. When and why would the Undo not be available in this situation?
Thanks for your help. Otto