VBA code.
Function CheckWebSite(url)
Dim oXMLHttp
Dim resp
Set oXMLHttp = CreateObject("MSXML2.ServerXMLHTTP.4.0")
oXMLHttp.open "GET", url, false
oXMLHttp.send()
if oXMLHttp.status = 200 Then
MsgBox oXMLHttp.responseText ' Retrieve from server.
else
MsgBox "Could not get html."
end if
set oXMLHttp = nothing
end function