VBA-tools / VBA-JSON

JSON conversion and parsing for VBA
MIT License
1.74k stars 565 forks source link

Not work in microsoft word #262

Closed yarp-wu closed 7 months ago

yarp-wu commented 7 months ago

Issue a error in the code Set json_ParseObject = New Dictionary Not suitable of use the "New" key word.

In this function

Private Function json_ParseObject(json_String As String, ByRef json_Index As Long) As Dictionary Dim json_Key As String Dim json_NextChar As String

Set json_ParseObject = New Dictionary
Nick-vanGemeren commented 7 months ago

See the discussion in issue #68. First try (Tools > References) moving the reference to Scripting Runtime above that for the Microsoft Word object library. If that does not help, edit the code changing the 2Dictionarywords to Scripting.Dictionary.

============= If this solves your problem, please close your issue here.