Aditya_rautz
New Member
- Joined
- Jun 29, 2011
- Messages
- 1
I have recoreded a simple macro to refresh a pivot table using below code
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
Macro works fine at first go...
But when i close and re-open the sheet..macro throw an error.
Can someone please help y this is happening??
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
Macro works fine at first go...
But when i close and re-open the sheet..macro throw an error.
Can someone please help y this is happening??