+ Reply to Thread
Results 1 to 2 of 2

Automate Powerquery JSON File Import with VBA

  1. #1
    Registered User
    Join Date
    04-06-2020
    Location
    Bristol, UK
    MS-Off Ver
    2016
    Posts
    6

    Automate Powerquery JSON File Import with VBA

    Hi,

    I have recorded a macro to automate importing a JSON file into Excel using Powerquery but the code is rather messy and when I try to change the file path to refer to a string, the query always fails.

    Does anyone have clean code for doing this?

    Chris


    Please Login or Register  to view this content.
    Last edited by Chris.Leo; 04-12-2020 at 04:41 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,627

    Re: Automate Powerquery JSON File Import with VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

+ 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. Edit JSON parser code to add function to write JSON file
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-16-2020, 09:28 PM
  2. Use VBA to import CSV file to PowerQuery Data Model
    By varundutta10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2019, 09:01 AM
  3. Import JSON to Excel 2007
    By mcchurchmouse in forum Excel General
    Replies: 1
    Last Post: 12-20-2017, 11:28 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
  6. Automate text file import
    By sider in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2011, 09:03 AM
  7. Replies: 2
    Last Post: 08-18-2006, 11:00 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