I have an event button in my excel document that loads a JSON document using a technique from this link: Is There a JSON Parser for VB6 / VBA?
This creates a JSON variable in the vb script that I can use based on this JSON string:
{
"a": 1,
"b": [
13,
1.4142135623730951,
15
]
}
I can easily use VBA script to load the page. But...
How can I use Json inside a formula within a Cell? Does something exist that does this? $VARIABLE_LOOKUP(Json)("a")
to get a value of 1
in the cell.
Can anyone get a working hello world scenario working of this scenario?
- Click command button
- It loads the Json
- The formula in
A5
should now evaluate to1
.
Can it be done?
An example of the code is inside this excel document here: https://drive.google.com/file/d/0B540RQ1Nj-KINnVQS3cwMDFsc1E/view?usp=sharing