+ Reply to Thread
Results 1 to 3 of 3

Refresh all query & save. not enough time for query to complete.

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    Berlin
    MS-Off Ver
    Excel 2007
    Posts
    188

    Refresh all query & save. not enough time for query to complete.

    Hi everyone,

    I have a very simple workbook with a couple tables. Manually I hit the refresh all button and save it.

    I tried to automate it (very simple)

    HTML Code: 
    It return a warning error Capture.PNG
    I dont know if you can read the above screenshot, it displays the following: "The action will cancel pending Refresh Data Comman, Continue?" YES NO

    Would you have any suggestion.

    Thanks
    Phil

    PS: I tried delaying the saving process by 10 sec, but even after 10 seconds I still get the above warning message. note that if I do it manually, it only take a blink of an eye to refresh.
    Last edited by mortphil; 01-07-2015 at 12:46 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Refresh all query & save. not enough time for query to complete.

    Try editing all of your connections (that are being refreshed) and set the BackgroundQuery=False.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    06-24-2013
    Location
    Berlin
    MS-Off Ver
    Excel 2007
    Posts
    188

    Re: Refresh all query & save. not enough time for query to complete.

    Thanks - I'll try that

+ 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. Problem with selecting range with in query table after query refresh
    By shooter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2012, 11:55 AM
  2. Display time of last refresh of a Query?
    By Dave H in forum Excel General
    Replies: 2
    Last Post: 01-05-2012, 11:03 AM
  3. WEb Query for Refresh of lesser Time frame
    By ronald_peterson in forum Excel General
    Replies: 2
    Last Post: 06-11-2011, 01:37 AM
  4. [SOLVED] save & close after web query refresh
    By JVLin in forum Excel General
    Replies: 0
    Last Post: 09-28-2005, 12:05 PM
  5. Auto Open file VBA Refresh MS Query Save Close
    By gcutter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2005, 11: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