ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot Table Refreshing (https://www.excelbanter.com/excel-programming/444990-pivot-table-refreshing.html)

hutteto

Pivot Table Refreshing
 
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

hutteto

Pivot Table Refreshing
 
anyone???

hutteto

Pivot Table Refreshing
 
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


All times are GMT +1. The time now is 05:20 PM.

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