P
P
Protactinium2362017-09-25 16:48:01
JSON
Protactinium236, 2017-09-25 16:48:01

How to write to memory or buffer JSON data of a parsed object via VBA-JSON?

There is a VBA function that calls data from a parsed JSON object through a parameter into an excel sheet cell
Public http As Object, JSON As Object
Function GETJSON(key As String)
Set http = CreateObject("MSXML2.XMLHTTP")
http.Open "GET" , "%myurl%", False
http.Send
Set JSON = ParseJson(http.responseText)
GETJSON = JSON(key)
End Function
for parsing https://github.com/VBA-tools/VBA-JSON
Question: if possible save the data in a buffer or something like not loading the json object again, say, before closing the excel file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
x67, 2017-09-25
@Protactinium236

yes, save http.responseText to the cell Sheets(X).Cells(Y,Z), and when you need to get the data, do it
instead
Set JSON = ParseJson(http.responseText)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question