uveenhacked
New Member
- Joined
- Nov 18, 2005
- Messages
- 28
how can i automatically refresh my pivot table, acctually i made a button for it, and assign this,
Sub Refresh_pivot()
ActiveSheet.PivotTables("PivotTable4").PivotCache.Refresh
ActiveSheet.PivotTables("PivotTable3").PivotCache.Refresh
ActiveSheet.PivotTables("PivotTable2").PivotCache.Refresh
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
End Sub
but excell always ask me this:
do you want to replace the contents of the destination cells in (worksheet name)?
i dont want excel do ask me... what should i do?
thanks in advance.
Sub Refresh_pivot()
ActiveSheet.PivotTables("PivotTable4").PivotCache.Refresh
ActiveSheet.PivotTables("PivotTable3").PivotCache.Refresh
ActiveSheet.PivotTables("PivotTable2").PivotCache.Refresh
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
End Sub
but excell always ask me this:
do you want to replace the contents of the destination cells in (worksheet name)?
i dont want excel do ask me... what should i do?
thanks in advance.