CatLadee
New Member
- Joined
- Sep 7, 2018
- Messages
- 29
Hi all!
Can someone please help me adjust the underlined below to include the equivalent of
<>"200 - OK"
or "301 - Moved Permanently"or "302 - Moved Temporarily"
or "302 - Found"
Then
Thanks so much for your time! - The CatLadee
-----
Can someone please help me adjust the underlined below to include the equivalent of
<>"200 - OK"
or "301 - Moved Permanently"or "302 - Moved Temporarily"
or "302 - Found"
Then
Thanks so much for your time! - The CatLadee
-----
Code:
Sub ValidateURLs()
Dim Cell As Range
Dim Rng As Range
Dim RngEnd As Range
Dim Status As String
Dim Wks As Worksheet
Set Wks = ActiveSheet
Set Rng = Wks.Range("F2")
Set RngEnd = Wks.Cells(Rows.Count, Rng.Column).End(xlUp)
If RngEnd.Row < Rng.Row Then Exit Sub Else Set Rng = Wks.Range(Rng, RngEnd)
For Each Cell In Rng
Status = GetURLStatus(Cell)
[U] If Status <> "200 - OK" Then[/U]
Cell.Offset(0, 4) = Status
End If
Next Cell
End Sub