Estevam Guilherme
New Member
- Joined
- Jul 16, 2015
- Messages
- 9
I’m trying to innertext a specific "src" address using MSXML2.xmlHttp. But, when I try sending the request with xmlhttp I get no error but it also give me nothing in return. How can I solve that?
Code:
Sub WebData()
Dim obj As Object, resp As String
With CreateObject("MSXML2.xmlHttp")
.Open "GET", "stURL", False
.send
resp = .responseText
End With
With CreateObject("HTMLFile")
.write resp
For Each obj In .all.getElementsByTagName("img")
If obj.Content Like "src:/*/" Then
MsgBox obj.Content
End If
Next
End With
Last edited: