View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
Shane Devenshire Shane Devenshire is offline
external usenet poster
 
Posts: 857
Default halt a subroutine question

Hi,

If you are running macroX and you want it to stop based on some condition

If x then Exit Sub

where x is the condition that triggers the macro to stop.

If this helps, please click the Yes button

cheers,
Shane Devenshire

"teepee" wrote in message
...

In the same way that you can start a second sub from within a sub by using
the command

call mymacro

is there a corresponding command to then stop that subroutine?

Should be obvious but I'm struggling with the answer