PivotCaches Method Example
This example causes the PivotTable cache to update automatically each time the workbook is opened.
ActiveWorkbook.PivotCaches(1).RefreshOnFileOpen = True