Record line number in macro where error occurs
Spike,
For development work, in the VBE: Tools / Options "General" tab, check "Break on all errors"
HTH,
Bernie
MS Excel MVP
"Spike" wrote in message
...
When trapping errors, is it possible to record the line in the macro where
the error occurred so in the Error Trapping routine one can note this line to
assist in finding the error.
I copy error details to an Error Log so it would be handy to have the line
in the macro where the error trapping routine was triggered.
--
with kind regards
Spike
|