Results 1 to 3 of 3

Thread: Make VBA code wait until table refresh is complete
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    May 2014
    Location
    Dallas, TX
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Make VBA code wait until table refresh is complete

    Hello everyone,

    I have some VBA code that refreshes all data tables (from SQL server) before it starts a for loop that loops through all the workbooks and then does some stuff.

    How can I make VBA wait until the tables are all refreshed before it moves into the loop and starts changing things on the sheets?

  2. #2
    MrExcel MVP
    Join Date
    May 2009
    Posts
    16,499
    Post Thanks / Like
    Mentioned
    38 Post(s)
    Tagged
    8 Thread(s)

    Default Re: Make VBA code wait until table refresh is complete

    Is there something that produces an indication that the refreshes are complete?
    Joe

    When I was a young man I knew everything. Now that I'm older, I realize I know very little, and what I do know, I tend to forget!

  3. #3
    Board Regular
    Join Date
    Apr 2016
    Posts
    79
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Make VBA code wait until table refresh is complete

    Quote Originally Posted by JoeMo View Post
    Is there something that produces an indication that the refreshes are complete?
    How would you indicate this?

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •