+ Reply to Thread
Results 1 to 13 of 13

Store part of JSON file in a variable

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Store part of JSON file in a variable

    Hello everyone
    I have a JSON file that I would like to parse data from .. I just need your help at specific point and that's how to refer to the desired part
    Have a look at this snapshot
    Untitled.png

    What I need is to refer to the 'results' >> 0 >> testPassFailCounts
    then to store its contents into an array

    >> I have posted the thread at this link too
    http://www.eileenslounge.com/viewtopic.php?f=30&t=31024

    Thanks advanced for help
    Last edited by YasserKhalil; 10-14-2018 at 12:10 AM.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    I could loop the json keys ..
    Please Login or Register  to view this content.
    Now how can I Loop through the items of results and refer to 'testPassFailCounts'?

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    Any help in this topic please?

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    Hope to find help in this topic. Are there any questions?

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Store part of JSON file in a variable

    There's an example of doing that on the github repo that you've got the code from - https://github.com/VBA-tools/VBA-JSON

    Which bit specifically are you struggling with, do you understand collections and dictionaries?

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    I already read a lot and have this link and downloaded it ..
    The problem for me is how to refer to the desired element and store it in array
    Please have a look at the json file
    Attached Files Attached Files

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Store part of JSON file in a variable

    So do you understand dictionaries and collections? You need to understand them to use that library

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    I already stored the json content in a variable and could loop through the keys only
    Please Login or Register  to view this content.
    At this point I got lost ...

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    Any points are not clear !!?

  10. #10
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    Still waiting for help my friends

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    I would welcome any ideas to solve this issue

  12. #12
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    Is the issue difficult and impossible? I have searched and found a lot of pages but I couldn't find a clue till now

  13. #13
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Store part of JSON file in a variable

    Problem solved at the other link with the help of Mr. Hans
    Thanks a lot for following the issue and this is the final solution for those who are interested
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro JSON file object extract
    By yousufj56 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2017, 07:30 PM
  2. [SOLVED] seperate json file into different columns by key
    By excelmymind in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2017, 02:37 AM
  3. seperate json file into different columns by key
    By excelmymind in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-27-2017, 02:35 AM
  4. Remove the space between the variable and the constant part of a file name
    By SirRyanGiggs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2014, 02:08 AM
  5. Json file from URL to Excel
    By KK33317 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2014, 10:50 AM
  6. Json file from URL to Excel
    By KK33317 in forum Tips and Tutorials
    Replies: 0
    Last Post: 03-13-2014, 07:39 AM
  7. Prompt to select file/path and store as variable
    By GeorgY in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-30-2009, 03:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1