I don’t know if I have the terminology correct or not, but this is what I am trying to do. I have a bunch of what I’m calling “Parent subs”. One of the lines in the parent sub is to run what I am calling the “Child sub”. Within the Child sub, I have an If..Then. If the If condition is true, I want to exit both the child sub and the Parent sub that called it.
I think I could do it by setting a variable, but I was hoping there was a simpler way to do it straight from the Child sub.
The following is a generic example (where “….” means other code:
Sub Parent()
….
Child
….
End Sub
Public Sub Child()
….
If X then
Exit Parent sub
Exit Child sub
End If
….
End sub
Thanks for your help!!
Troy