I am trying to teach myself VBA to download HTML to Excel. Using webquery doesn't work, possibly because the website retrieves it's data from a json? I have read a lot of questions, answers and explanations, the one thing I continue to not really see is how structurally all the pieces are put together. Would anyone be kind enough to tell me what my next steps are in this code? It's what I want to accomplish in VBA, but I'm still missing parameters. Currently I get a compile error can't assign array and it highlights the "podId".
When I get the above part working, most importantly there is a "show more" button at the bottom of the webpage. I want the data I retrieve to be the whole approx. 30 pages, not the first one. I could find very little info on going about this in my websearch.
Here is my rough code so far.
When I get the above part working, most importantly there is a "show more" button at the bottom of the webpage. I want the data I retrieve to be the whole approx. 30 pages, not the first one. I could find very little info on going about this in my websearch.
Here is my rough code so far.
Code:
Sub CouponsZip77477()
With CreateObject("MSXML2.XMLHTTP")
xmlhttp.Open "GET", "http://www.coupons.com/coupons/?zip=77477"
XML = http.send()
xmlDoc = xmlhttp.responseXML
End With
Dim podId() As Integer
Dim brand() As String
Dim summary() As String
Dim details() As String
Set podId() = Range("A1").Offset(1, 0)
Set brand() = Range("B1").Offset(1, 0)
Set summary() = Range("C1").Offset(1, 0)
Set details() = Range("D1").Offset(1, 0)
End Sub