Pivot Table Refreshing

  • Thread starter Thread starter hutteto
  • Start date Start date
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
 
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
 
Back
Top