VBA scrape src instead of href
问题 I am using the code below code but it brings the value of 'src' instead of 'href' for some reason. Anyone can help please? Sub bringfox(txt As String) Dim oHtml As HTMLDocument Dim oElement As Object Set oHtml = New HTMLDocument maintext2 = "https://www.jjfox.co.uk/cigars/show/all.html" With CreateObject("WINHTTP.WinHTTPRequest.5.1") .Open "GET", maintext2 & gr, False .send oHtml.body.innerHTML = .responseText End With counter = cnt 'oElement(i).Children(0).getAttribute ("href") Set oElement