+ Reply to Thread
Results 1 to 2 of 2

Force Excel to ask for data source each time I open it

  1. #1
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Force Excel to ask for data source each time I open it

    Hi All,

    Just trying to use get data from other spreadsheets for the first time. Power query??

    So using the Get Data > From File > From Excel Workbook - I can find my folder where the other spreadsheets (12 of them) are contained and I can select one and load it into my current workbook as a table and all is well.

    What I want to achieve is when I reopen my workbook, (or force a refresh of the data) I want Excel to ask me what spreadsheet of the 12 in the folder I want to get the data from to load.

    How do I do this?

    Thanks, BVG

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Force Excel to ask for data source each time I open it

    Here is how I would do it assuming they are all the exact same format.

    Make a copy of any of your source files and give it a fixed name like My Data.xlsx. Build your query from My Data.xlsx.

    Then write codes to prompt for the name of the source file you want to use: maybe put them in a list box or something. When the source file is selected, copy it over My Data.xlsx and then run the query.

    Kick the whole thing off with a OnOpen workbook event.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Replies: 10
    Last Post: 11-29-2020, 03:53 PM
  2. Replies: 2
    Last Post: 07-04-2019, 06:36 AM
  3. [SOLVED] Error: Source Not Found Every Time I Open Excel Workbook
    By whahmira in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2018, 12:00 PM
  4. force a combobox to open when excel opens
    By Cleric82 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2016, 01:51 PM
  5. [SOLVED] Force workbook to open in Excel 2003 ?
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-19-2014, 08:23 AM
  6. Missing Something - Open Word Mail Merge from Excel but no data source
    By Oz Dude in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2012, 07:25 PM
  7. Force to open in Excel not IE6
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2008, 08:31 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