I have a simple Sub with an Error Handler:
The program generates a few errors, but only first one goes to the ErrorHandler, the rest just display the message in VBA IDE about the error.
I don't have anywhere [tt]On Error GoTo 0[/tt] or anything.
I did try all setting options in Tools - Options... - General tab - Error Trapping frame
How do I trap all errors, not just the first one?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
Code:
Private Sub Test()
On Error GoTo ErrorHandler
...
Exit Sub
ErrorHandler:[green]
'Deal with the error[/green]
End Sub
The program generates a few errors, but only first one goes to the ErrorHandler, the rest just display the message in VBA IDE about the error.
I don't have anywhere [tt]On Error GoTo 0[/tt] or anything.
I did try all setting options in Tools - Options... - General tab - Error Trapping frame
How do I trap all errors, not just the first one?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson