Hi everyone,
A client I am working with has a ton of URLs that they need checked at once to see which ones return errors. They were able to find this YouTube video that shows how to make a macro that does this, but it only runs on Windows (we tried it on Excel on their Apple computers) and I use Ubuntu and LibreOffice.
I am thinking that maybe the script can be modified easily so that the macro works on Linux.
Here is a video that shows it in action:
The code is:
Public Function CheckURL(url As String)
Dim request As Object
Set request = CreateObject("WinHttp.WinHttpRequest.5.1")
On Error GoTo haveError
With request
.Open "HEAD", url
.Send
CheckURL = .Status
End With
Exit Function
haveError:
CheckURL = Err.Description
Thank you!
EDIT:
While this hasn’t been solved and I am leaving it up since it may be of interest to others, my purposes are more or less served by https://httpstatus.io/