Many run-time errors are now trappable using the run-time error trapping statements, such as On Error GoTo Statement. To find out which error is trapped, you can use the Err Object variable.Err Object has five properties that may be examined. For details, see
Err Object variable section in
Object Variables.