L
Lynn
hi,
anyone can help me to fit this code as a macro ?
thanks
Option Explicit
function checkURL(file)
Dim oHTTP, status
set oHTTP = CreateObject("MSXML2.ServerXMLHTTP")
oHTTP.open "GET", file, False
oHTTP.send
status = oHTTP.Status
if status = 200 then
checkURL = " exists!"
else
checkURL = " does not exists."
end if
set oHTTP = nothing
end function
anyone can help me to fit this code as a macro ?
thanks
Option Explicit
function checkURL(file)
Dim oHTTP, status
set oHTTP = CreateObject("MSXML2.ServerXMLHTTP")
oHTTP.open "GET", file, False
oHTTP.send
status = oHTTP.Status
if status = 200 then
checkURL = " exists!"
else
checkURL = " does not exists."
end if
set oHTTP = nothing
end function