I have a public json URL that outputs a digit.
How can i have a certain excel spreadsheet cell pull the data from that URL and use that data?
How can i have a certain excel spreadsheet cell pull the data from that URL and use that data?
Function GetData(URL As String) As String
Set OXH = CreateObject("msxml2.xmlhttp")
With OXH
.Open "get", URL, False
.send
x = .responseText
End With
Set OXH = Nothing
GetData = x
End Function
Comment