shahin
Active Member
Is it right what i did here? I meant, will that be something like this:
Code:
Sub Demo1()
With New XMLHTTP60
On Error Resume Next
For r& = 1 To Cells(Rows.Count, 1).End(xlUp).Row
.Open "GET", Cells(r, 1).Value, False
.send
If InStr(.responseText, "<title>") > 0 Then
Cells(r, 2).Value = Split(Split(.responseText, "<title>")(1), "</")(0)
ElseIf InStr(.responseText, "<TITLE>") > 0 Then
Cells(r, 2).Value = Split(Split(.responseText, "<TITLE>")(1), "</")(0)
Else: Cells(r, 2).Value = "Not Exists"
End If
Next
End With
End Sub