Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I got tired of keep create the new pivot table every time there're new data in the sheet. Therefore, I use the following code in the macro to update but it keeps giving an error '!UpdateIt' cannot be found ??? ~ PLS HELP ! Sub Auto_Open() Application.OnSheetActivate = "UpdateIt" End Sub Sub UpdateIt() Dim iP As Integer Application.DisplayAlerts = False For iP = 1 To ActiveSheet.PivotTables.Count ActiveSheet.PivotTables(iP).RefreshTable Next Application.DisplayAlerts = True End Sub Thanks, Excel Rookie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
auto update my pivot table | Excel Discussion (Misc queries) | |||
Auto Update a Pivot Table | Excel Discussion (Misc queries) | |||
Auto update of Pivot Table | Excel Discussion (Misc queries) | |||
Auto Update Range of a Pivot Table | Excel Programming | |||
How do I set the pivot table to auto-update the data range? | Excel Discussion (Misc queries) |