+ Reply to Thread
Results 1 to 6 of 6

Trouble with VBA-JSON

Hybrid View

  1. #1
    Registered User
    Join Date
    04-30-2008
    Posts
    67

    Question Trouble with VBA-JSON

    Hello All,

    It's been quite a minute since I've touched VBA and now I'm working with JSON, which is new to me. I'm trying to use this JSON Conversion utility, but I'm running into an error. I'm not sure where to start messing with their code, but I have a feeling it's relatively simple to correct. I've included some screenshots that may help. I don't know what else I'd need for you all, but would be happy to share it.

    Thanks,

    stu

    2017-10-03_1320.png

    2017-10-03_1323.png

    2017-10-03_1324.png

  2. #2
    Registered User
    Join Date
    04-30-2008
    Posts
    67

    Re: Trouble with VBA-JSON

    Okay, I got to thinking about it and remembered I need credentials. So I added them and now get a different error, but seems to get further than before.

    Now the debugger goes to:
    MsgBox Json("projects")
    This makes me think it's how I'm trying to call the field ("projects").

    Thanks for any help!

    2017-10-03_1336.png

  3. #3
    Registered User
    Join Date
    04-30-2008
    Posts
    67

    Re: Trouble with VBA-JSON

    I didn't have it formatted correctly, should have been:

    MasgBox Json("projects")(1)

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Trouble with VBA-JSON

    Hello stusic,

    What is your actual objective? Could you please explain what you are trying to achieve with your project Workbook, before even applying an add in like "Jason"?

    IMHO, I don't think Forum Members would be interested in down loading "Jason" to try and assist.

    Please attach a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Trouble with VBA-JSON

    Hello Winon,
    The OP was trying to parse data in to excel using a third-party utility. There is no JSON parser built-in in VBA. You probably are aware that JSON has become very popular data exchange format. It is the preferred data format by many applications and is gradually taken over XML in terms of popularity. VBA has XML parser object. If you want to extract data, mainly from a web and that data format is JSON, you can use a JSON parser to convert the data from JSON format in to excel.

    Some people have written a JSON parser for VBA. I think the guy name is Tim Hall (GitHub). I used his code in some of my project. It appears that his original work being converted in to some kind of utility.
    Last edited by AB33; 10-03-2017 at 04:34 PM.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Trouble with VBA-JSON

    @ AB33,

    Thank you for the clarification, I truly appreciate it.

    Looks like something absolutely worth exploring.

    Kind Regards.

+ 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. Parsing JSON to excel
    By ErgoTeam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2016, 02:54 AM
  2. Excel VBA-JSON Example
    By manofcheese in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2016, 11:52 AM
  3. API Json to Excel Macro
    By ermengard in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2014, 05:33 AM
  4. Json file from URL to Excel
    By KK33317 in forum Tips and Tutorials
    Replies: 0
    Last Post: 03-13-2014, 07:39 AM
  5. Import JSON Api to Excel
    By hockeyadc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2014, 01:42 PM
  6. JSON URL to xls in rows and columns
    By kvsree in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2013, 12:02 PM
  7. [SOLVED] Pulling json or csv data from a url
    By Versial in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-10-2012, 04:43 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