PivotCache.RefreshPeriod property (Excel)
Returns or sets the number of minutes between refreshes. Read/write Long.
expression A variable that represents a PivotCache object.
Setting the period to 0 (zero) disables automatic timed refreshes and is equivalent to setting this property to Null.
The value of the RefreshPeriod property can be an integer from 0 through 32767.
This example sets the refresh period for the PivotTable cache (PivotTable3) to 15 minutes.
Set objPC = Worksheets("Sheet1").PivotTables("PivotTable3").PivotCache objPC.RefreshPeriod = 15
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.