+ Reply to Thread
Results 1 to 2 of 2

vba code for changing query xls source prompt

  1. #1
    Registered User
    Join Date
    11-19-2012
    Location
    Poland
    MS-Off Ver
    365
    Posts
    1

    vba code for changing query xls source prompt

    Hi
    I was searching for a simple vba code that open the prompt for change source for query that is xls sheet. I have a lot of query steps that i need to do every time that source is changing. So basically i would like to have macro that does this manual steps for a certain query name (i have a number of them in a workbook):
    in the query edit mode, click the source change button:
    vba1.png
    macro should open the prompt so that i can manually pick the xls file:
    vba2.png
    also, the data can be in a sheet that have different name than previously, so i have to also navigate to proper sheet/table so that "navigation" prompt would be also nice to open so i can manually choose:
    vba3.png
    vba4.png

  2. #2
    Registered User
    Join Date
    01-08-2017
    Location
    Salt Lake City, Ut.
    MS-Off Ver
    2010
    Posts
    96

    Re: vba code for changing query xls source prompt

    Did you ever resolve this issue or figure out how to do it? I am also looking for VBA code to modify query sources.

+ 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. Code to change Power Query source and refresh
    By kersplash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2021, 07:35 AM
  2. Getting Data from external source with Prompt Window
    By Bobbbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2017, 04:35 PM
  3. [SOLVED] Changing Pivot Table Source- Code Created Files Require Manual Refresh Each Time Opened
    By Aquamore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2015, 05:53 PM
  4. Changing an Excel 2007 table data source in code
    By cherman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2010, 02:51 PM
  5. code for prompt date to query sql
    By ghynes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2007, 10:53 AM
  6. changing query source
    By ucdcrush@gmail.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2006, 05:00 PM
  7. [SOLVED] Excel - MS Query - changing location of Access data source
    By Thomas Becker in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-01-2005, 10:05 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