Advertisement
YasserKhalil2019

Using XMLHTTP

Aug 18th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Sub Test()
  2. Dim sResp As String
  3. With CreateObject("MSXML2.XMLHTTP")
  4. .Open "GET", "https://raw.githubusercontent.com/owid/covid-19-data/master/public/data/vaccinations/us_state_vaccinations.csv", False
  5. .send
  6. sResp = .responseText
  7. End With
  8. Open ThisWorkbook.Path & "\CoivdXMLHTTP.csv" For Output As #1
  9. Print #1, sResp
  10. Close #1
  11. End Sub
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement