Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It may be that the PivotTable is no longer identified as item (1).
Right-click on the PivotTable and select "Table Options..." from the shortcut menu. Note the name listed in the "Name:" field on top and then replace the "1" in your code to the PivotTable name in quotes. Ex. Private Sub Worksheet_Activate() ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh End Sub -Glenn Ray "Carim" wrote: Hi, After some data update in the source file (separate file), I would like an automatic refresh of pivot table. I am using the following code : Private Sub Worksheet_Activate() ActiveSheet.PivotTables(1).PivotCache.Refresh End Sub What 's wrong ? Any ideas ? TIA Carim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create refresh button in worksheet to refresh Pivot Table Data | Excel Worksheet Functions | |||
Automatic refresh of pivot tables | Excel Discussion (Misc queries) | |||
refresh a new worsheet on pivot table refresh | Excel Worksheet Functions | |||
Timing of automatic query refresh and macro pivot table refresh | Excel Programming | |||
Pivot Table REFRESH Flaw -- Saves Old Data in Selection Area AFTER REFRESH | Excel Programming |