+ Reply to Thread
Results 1 to 2 of 2

Setting up a Query without refreshing

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Setting up a Query without refreshing

    I want to set up a query to download data from a Text file before I want to run the query.
    I have tried the following code
    Please Login or Register  to view this content.
    hoping that commenting out the penultimate Refresh line would set up the connection for future refreshes without actually refreshing, but this does not seem to happen. How do I add a connection?
    John
    Last edited by j_Southern; 11-12-2014 at 10:50 AM. Reason: code wrong

  2. #2
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: Setting up a Query without refreshing

    All of this was originally accomplished manually. In order to download data all that was needed was to refresh the query. I now have to automate the whole business and once a year the sheets are cleared and rebuilt in code, including the query. I do not wish to download data at the time of rebuilding the sheets. I do want to define the query so that at the appropriate time I can download the data by a refresh. I hope someone can help me with this.
    John

+ 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. [SOLVED] Help! Query Refreshing
    By Emma Hope in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-16-2020, 11:37 PM
  2. Refreshing Web Query
    By Reznorz in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-22-2012, 05:34 AM
  3. Microsoft query and refreshing help
    By skywalkman-GB in forum Excel General
    Replies: 0
    Last Post: 06-24-2011, 05:54 AM
  4. MS Query Not Auto Refreshing
    By JuSlaughter in forum Excel General
    Replies: 2
    Last Post: 03-21-2007, 01:59 PM
  5. [SOLVED] Refreshing a database query
    By SeeKY in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2005, 08:45 PM

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