I'm inexperienced with err handling and I'm trying to diagnose the source of an out of memory error that occurs when I run several procedures in succession but does not occur when I exit excel between procedures.
My question is, if I put something like 'On Error Goto ErrHandler' at the top of my code and and have some code in the ErrHandler that records the size of ranges and arrays etc for review later, does code execution get diverted to the ErrHandler any time an error occurs or does execution get diverted only if an error is occurring when the 'On Error ...' statement is processed?
Thanks in advance, sorry for the basic nature of the question.
My question is, if I put something like 'On Error Goto ErrHandler' at the top of my code and and have some code in the ErrHandler that records the size of ranges and arrays etc for review later, does code execution get diverted to the ErrHandler any time an error occurs or does execution get diverted only if an error is occurring when the 'On Error ...' statement is processed?
Thanks in advance, sorry for the basic nature of the question.