I found the following macro online. I would like to know how to add an input box that allow me to tell the macro to check other column than A and to start at other cells than A1.
Sub Check_URLs()
Dim cell As Range
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
For Each cell In Range("A1", Range("A" & Rows.Count).End(xlUp))
If Left(cell.Value, 4) = "http" Then
' Goto web page
IE.Navigate cell.Text
Application.StatusBar = cell.Text & " is loading. Please wait..."
' Wait until web page is loaded
Do Until IE.ReadyState = 4 'READYSTATE_COMPLETE
Loop
Application.StatusBar = ""
' Look for text on web page
If InStr(IE.Document.body.innerText, _
"HTTP 404") > 0 Then
cell.Offset(, 1).Value = "zzz"
Else
cell.Offset(, 1).Value = "Y"
End If
End If
Next cell
IE.Quit
Set IE = Nothing
End Sub