Error reporting is used to capture errors in programs. On Error GoTo FileError- This statement goes to a code label FileError
On Error Resume Next- This executes when an error occurs and the code flow jumps to the next immediate line
If Err Then
MsgBox Err.Description & vbCrLf & Err.Number
End If
Err is an error object and its methods and properties are used to display the error number and the error description.
On Error Resume Next- This executes when an error occurs and the code flow jumps to the next immediate line
If Err Then
MsgBox Err.Description & vbCrLf & Err.Number
End If
Err is an error object and its methods and properties are used to display the error number and the error description.
No comments:
Post a Comment