Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
|
|||
|
|||
halt a subroutine question
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 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
halt a subroutine question
The stopping condition would have to be written into the called routine.
Gord Dibben MS Excel MVP On Sun, 28 Dec 2008 19:03:16 -0000, "teepee" wrote: 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 |
#3
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
|
|||
|
|||
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 |
#4
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
|
|||
|
|||
halt a subroutine question
Thanks for the answers. Much appreciated
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Halt Rest of Macro after Error €“ Jim Cone review | Excel Discussion (Misc queries) | |||
VLOOKUP returns #N/A and causes VBA routine to halt | Excel Worksheet Functions | |||
SUBROUTINE HELP | Excel Discussion (Misc queries) | |||
No RETURN() or HALT() function found on macro sheet | Excel Discussion (Misc queries) | |||
How do I exit a macro subroutine? | Excel Worksheet Functions |