+ Reply to Thread
Results 1 to 3 of 3

Power Query - running from VBA

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Power Query - running from VBA

    Good Day to all

    Can I control Power Query by means of VBA? for instance I have a number of queries and on a weekly basis I want to edit the queries to change the date filters and then refresh the resultant tables for the new data?

    I have tried to record a macro, but this does not recognize power query editor at all.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,909

    Re: Power Query - running from VBA

    No. What you can do is use parameters for your dates so that they can be updated in Excel cells, then just refresh: https://accessanalytic.com.au/powerq...ls_parameters/

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Power Query - running from VBA

    Hi rorya

    Thank you very much this will make life much easier.

+ 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. Sub-Forum for Power Query & Power BI?
    By AliGW in forum Suggestions for Improvement
    Replies: 7
    Last Post: 08-26-2018, 05:25 PM
  2. [SOLVED] Power Query - want to add formulas to query output
    By kersplash in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-19-2018, 06:16 AM
  3. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  4. New to Power Query Need to refence a cell for SQL query
    By BSWhipp in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-10-2018, 09:00 AM
  5. Replies: 0
    Last Post: 04-05-2018, 01:16 AM
  6. error in power query & power pivot
    By Baldev Kumar in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-03-2018, 01:34 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