While using On Error Resume Next,it skips the encountered error and move to the next line. If we use err.Number and err.Description it shows message and number related to the error. My question is: what if it faces more than on error...then how it will show?
On Error Resume Next
intDivideByZero
floatDivideByZero
If err.Number <> 0 Then
msgbox "the error number is : " & err.Number
msgbox "the error description is : " & err.Description
End If
On error Resume 0
On Error Goto 0notOn Error Resume 0, that will trigger a Syntax Error which you are not expecting. - user692942