ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Wait for refresh/calc before proceeding (https://www.excelbanter.com/excel-programming/402223-wait-refresh-calc-before-proceeding.html)

Finny388

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


All times are GMT +1. The time now is 06:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com