I would like to provide my error handler with one further capability: Retrieve / display / log the failed LOC. I have the handler providing context sensitive details about the error, but for long subs/functions I think there is the possibility to not be sure a to which LOC caused the error.
Other interpretive languages provide a sourceline capability of fetching the original LOC which failed. I have not seen such in VBA yet. Having such would at least record the exact LOC which caused the error. Suggestions?
Other interpretive languages provide a sourceline capability of fetching the original LOC which failed. I have not seen such in VBA yet. Having such would at least record the exact LOC which caused the error. Suggestions?