B
bobdydd
Hi Everbody
I am trying to trap the error that SHOULD occur when there is no
internet connection.
Private Sub CmdPayHere_Click()
On Error GoTo Err_CmdPayHere_Click
Application.FollowHyperlink "http://www.microsoft.com"
Err_CmdPayHere_Click:
MsgBox "Page Not Available, Check that You ARE online",
vbInformation, "No Internet Connection"
End Sub
However, the above code displays the error message whether there is a
connection or not
Also, when there is NO CONNECTION, there is no error displayed at all.
All that happens is the browser does not display.
Thanks in advance for any help.
Bob
I am trying to trap the error that SHOULD occur when there is no
internet connection.
Private Sub CmdPayHere_Click()
On Error GoTo Err_CmdPayHere_Click
Application.FollowHyperlink "http://www.microsoft.com"
Err_CmdPayHere_Click:
MsgBox "Page Not Available, Check that You ARE online",
vbInformation, "No Internet Connection"
End Sub
However, the above code displays the error message whether there is a
connection or not
Also, when there is NO CONNECTION, there is no error displayed at all.
All that happens is the browser does not display.
Thanks in advance for any help.
Bob