A
Alex Ivanov
Try to add a line
on error goto errhandler
at the beginning of the macro code or near the statement that most likely
will cause the error.
Then at the end of the macro, just before End Sub type
Exit Sub
ErrHandler:
' your error handler code goes here, if you wish, like this one
msgbox err.number & " " & err.description
End Sub
on error goto errhandler
at the beginning of the macro code or near the statement that most likely
will cause the error.
Then at the end of the macro, just before End Sub type
Exit Sub
ErrHandler:
' your error handler code goes here, if you wish, like this one
msgbox err.number & " " & err.description
End Sub