Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi all, How do you kill all procedures on an error? I have a procedure that calls a series of other procedures. I have error code in each of those sub procedures that will kill that sub procedure if there is an error within that sub procedure, but the main procedure thread still keeps firing off. Code: -------------------- Private Sub MasterList_click() 'procedure code here' Call SubP1 Call SubP2 End sub Private SubP1() On Error Goto Handler1 Exit Sub Handler1: MsbBox "An error has occured, exiting procedure" 'sub procedure code here' End Sub -------------------- But SubP2 still fires off, as well as anything else downstream of SubP1 in MasterList even if SubP1 errors out and is killed properly. So what can I insert into the error handler in SubP1 that will kill all procedures entirely? -- Ouka ------------------------------------------------------------------------ Ouka's Profile: http://www.excelforum.com/member.php...o&userid=23988 View this thread: http://www.excelforum.com/showthread...hreadid=473148 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data collation killing me!! | Excel Worksheet Functions | |||
VBA loop is killing me! | Excel Discussion (Misc queries) | |||
help me out with this - it's killing me.. | Excel Programming | |||
killing a sub from within an if statement | Excel Programming | |||
Killing Excel :) | Excel Programming |