Hi,
Try this code:
Sub GetISBN()
Const PubStatusTag = "pubstatus="
Dim Rng As Range, x As Range, oHttp As Object, txt$, i&, j&
Set Rng = Range("A2", Cells(Rows.Count, 1).End(xlUp))
On Error Resume Next
Set oHttp = CreateObject("MSXML2.XMLHTTP")
If Err <> 0 Then Set oHttp = CreateObject("MSXML.XMLHTTPRequest")
If oHttp Is Nothing Then MsgBox "MSXML2.XMLHTTP not found", 16, "Error": Exit Sub
On Error GoTo 0
With oHttp
For Each x In Rng
.Open "GET", x.Value, False
.Send
txt = .responseText
i = InStr(1, txt, PubStatusTag, 1)
If i = 0 Then
x.Offset(, 1).Value = "PubStatusTag not found"
Else
i = i + Len(PubStatusTag)
j = InStr(i, txt, "&", 0)
x.Offset(, 1) = Replace(Mid(txt, i, j - i), "+", " ")
End If
Next
End With
Set oHttp = Nothing
End Sub
Regards,
Vladimir