Pivot Table Refreshing

H

hutteto

Hey,

I have 3 pivot tables. How would I programmatically refresh all 3
pivot tables to where they refresh individually? As in I want the 1st
one to finish refreshing before the 2nd begins to refresh, and I want
the 2nd one to finish refreshing before the 3rd one begins to refresh?

Thanks
 
H

hutteto

Ok well I found a solution so figure I would post…


With pt
LastRefreshDate = ""
LastRefreshDate =
pt.PivotCache.RefreshDate
pt.PivotCache.Refresh
Do Until pt.PivotCache.RefreshDate <>
LastRefreshDate
Application.Wait (Now +
TimeValue("0:01:00")) 'Waits 1 minute before reevaluating
Loop
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top