View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Corey[_2_] Corey[_2_] is offline
external usenet poster
 
Posts: 16
Default How to Stop a Macro if a 'Call' macro was used

Is ther a way to Cancel a CommandButton on a form via a Module Sub Routine ?

I can have :
Userform1.CommandButon2.Cancel
but it does not STOP the macro from running that called the other macro in
the module, but returns an error.

Is ther a way to STOP/CANCEL a CommandButton continuing from a Module code?

Corey....