Show Message Box if Error
Sub errorr()
myError = True
If myError Then
MsgBox ("something bad happened")
End If
End Sub
--
Gary''s Student - gsnu2007
"Sean" wrote:
I have a macro that pulls back info from a web site. I just refresh
the code to periodically update, sometimes this web site is down and
my code returns an error. How would I include a message box if such an
instance occurs with a simple message "web site down, info not
updated"?
Thanks
|