+ Reply to Thread
Results 1 to 4 of 4

Reg:vba code wait till the query is completed.

  1. #1
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Reg:vba code wait till the query is completed.

    Dear all,

    VBA does not wait until all of the records have downloaded to the destination sheet when there are a lot of records in the source table.
    How can I verify that the query below has retrieved every record from the source? Please assist me.


    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Reg:vba code wait till the query is completed.

    Set background query to false

  3. #3
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Reg:vba code wait till the query is completed.

    I'm struggling to replicate this issue, when running this code the table in my sheet is identical the one from the Wiki page, with all data present.

  4. #4
    Registered User
    Join Date
    02-08-2014
    Location
    Chennai
    MS-Off Ver
    Excel office 365
    Posts
    41

    Re: Reg:vba code wait till the query is completed.

    Quote Originally Posted by anavarathan View Post
    Dear all,

    VBA does not wait until all of the records have downloaded to the destination sheet when there are a lot of records in the source table.
    How can I verify that the query below has retrieved every record from the source? Please assist me.


    Please Login or Register  to view this content.
    Still getting that error

+ 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. VBA: Wait for next command till .exe application is opened. How?
    By Bevase in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2022, 12:16 PM
  2. Macro wait till range(s) filled, then resume.
    By drgkt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2017, 06:11 PM
  3. Replies: 2
    Last Post: 01-24-2017, 11:22 AM
  4. [SOLVED] How to get MsgBox to wait till values in both cells are entered before popping up
    By mitchellA in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2016, 01:47 AM
  5. SQL connections, wait with the code until query is done!
    By Reemet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2015, 02:38 AM
  6. Send Excel attachment, but wait till Outlook closes
    By thepython in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2006, 05:30 PM
  7. [SOLVED] row that needs to wait till the next page break befor copying
    By wil4d in forum Excel General
    Replies: 0
    Last Post: 12-20-2005, 10:40 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