F
Finny388
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
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