A
Allen_N
Here's one for the gurus.
I tried to implement several error-handlers in one subprogram, each to
handle different errors at different stages in the execution. However, no
matter what I do, it seems that only the 1st error handler that is activated
will ever work. Even if it is subsequently deactivated, and a different
error-handler enabled, the new one is ignored when an error occurs.
I realised I have struck this problem in VB4 as well as VBA. My workaround
is to put each task that needs a specific error handler into a separate
subprogram, but this gets messy. Anyway, is it true that only one error
handler can ever be activated (even if subsequently deactivated) in a given
context? Or, have I fallen into some sort of 'error trap' myself?
I tried to implement several error-handlers in one subprogram, each to
handle different errors at different stages in the execution. However, no
matter what I do, it seems that only the 1st error handler that is activated
will ever work. Even if it is subsequently deactivated, and a different
error-handler enabled, the new one is ignored when an error occurs.
I realised I have struck this problem in VB4 as well as VBA. My workaround
is to put each task that needs a specific error handler into a separate
subprogram, but this gets messy. Anyway, is it true that only one error
handler can ever be activated (even if subsequently deactivated) in a given
context? Or, have I fallen into some sort of 'error trap' myself?