Pages

How to get a discription of an error

On Error Resume Next
-------------------------------
Your code goes here.( ex: Mail.Send)
-------------------------------
If Err.Number <> 0 Then
    MsgBox Err.Description, vbCritical, "There was an error"
    Exit Sub
End If