Is there a way to find out if a Sub exists.
I know I can use an errorlabel to catch undefined callSubs, but I'm looking for a clean way to find out the existence of a sub.
One problem using the errorlabel cause the program to loop, but this is probably because the errorlabel itself is in the If stucture:
So a separate question is, what is happening with my vars when an error jumps in?
Scub.
I know I can use an errorlabel to catch undefined callSubs, but I'm looking for a clean way to find out the existence of a sub.
One problem using the errorlabel cause the program to loop, but this is probably because the errorlabel itself is in the If stucture:
Sub doCalSubs
ErrorLabel(InValidSub)
For ii = 1 To 2
CallSub ("Sub_" & ii)
InValidSub:
Next
End Sub
Sub Sub_1
End Sub
So a separate question is, what is happening with my vars when an error jumps in?
Scub.
Last edited: