If an error has occurred during use of the Internet Transfer Control, the ResponseCode and ResponseInfo properties will contain further information about the error.
The ResponseCode property contains a number indicating the error number returned from the remote computer. The ResponseInfo property holds a string description corresponding to the error number.
Sub InternetErrorHandler()
Msgbox "ErrorCode: " & icMain.ResponseCode & _
" : " & icMain.ResponseInfo
End Sub