+ Reply to Thread
Results 1 to 8 of 8

API Json to Excel Macro

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    29

    API Json to Excel Macro

    I am trying to import the following api json in excel table.
    http://api.manilainvestor.com/v1/stocks/hdata/dnl
    Can anyone help me develop the code for the macro.

    Data must be separated in these coloumns.

    Date | High | Low | Open | Close | Volume


    Thank you.

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

    Re: API Json to Excel Macro

    This will dump the data in the first sheet, starting at A1

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: API Json to Excel Macro

    Thanks Kyle. You're awesome!

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: API Json to Excel Macro

    Hi Kyle,

    I tried to use your code Excel 2010, I am receiving error message to this line:

    Please Login or Register  to view this content.

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

    Re: API Json to Excel Macro

    What's the error?

  6. #6
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: API Json to Excel Macro

    I am getting the error Run-time error '429' ActiveX component can't create object in the line
    Please Login or Register  to view this content.
    using Excel 2010 x64.

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

    Re: API Json to Excel Macro

    You should have said that earlier really, MSScript Control is 32-bit and will work on 32-bit versions of Excel (on both 32 and 64-bit windows), but not the 64-bit version.

    This will need a complete re-write, I'll have a look when I get chance.

  8. #8
    Registered User
    Join Date
    10-02-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: API Json to Excel Macro

    Thanks Kyle.

+ 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. Importing JSON/XML into Excel from Web service
    By starfish_001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2016, 08:20 AM
  2. Json file from URL to Excel
    By KK33317 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2014, 10:50 AM
  3. Json file from URL to Excel
    By KK33317 in forum Tips and Tutorials
    Replies: 0
    Last Post: 03-13-2014, 07:39 AM
  4. Import JSON Api to Excel
    By hockeyadc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2014, 01:42 PM
  5. Import JSON in Excel by macro
    By bmmerkx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 09:39 AM

Tags for this Thread

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