Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Wait for refresh/calc before proceeding

I have a sheet that uses an MS Query to pull data.
I also have a bunch of vlookups looking at that data.

In a vba procedure, I want to Refresh All, then hide some unused rows.

But I have to wait until the refresh and calc is finished to know what
rows will be unused.

How can halt the macro until the refresh and calc is done?

So far I just have:

Sub RefreshAll()
ActiveWorkbook.RefreshAll
<hide routine
End Sub
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
F9 Calc refresh does not work... LinLin Excel Discussion (Misc queries) 3 February 23rd 10 12:10 PM
My graphs no longer refresh w/new data, why? auto calc is on. BenM135 Charts and Charting in Excel 0 April 24th 07 10:24 PM
Wait until MSQuery Refresh finished ChrisR[_2_] Excel Programming 1 September 19th 05 05:59 PM
Wait for Pivot Refresh to Complete Dan Excel Programming 1 June 14th 05 06:14 PM
Wait for Pivot Refresh before continuing Code Execution Dan Excel Programming 0 May 11th 05 06:12 PM


All times are GMT +1. The time now is 04:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"