ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete PivotCache (https://www.excelbanter.com/excel-programming/332449-delete-pivotcache.html)

sorin

Delete PivotCache
 
Hi all,

I'd like to create a macro to easily delete a Pivot table.

I noticed that ws.PivotTables(i).TableRange2.Clear eliminates the
pivottable from worksheet and collection while pivotchache object still
remains in the workbook.

Any ideas?

Best regards


Tom Ogilvy

Delete PivotCache
 
When all pivottables that depend on the cache are eliminated, then the cache
will be cleared when you save the workbook.

--
Regards,
Tom Ogilvy


"sorin" wrote in message
oups.com...
Hi all,

I'd like to create a macro to easily delete a Pivot table.

I noticed that ws.PivotTables(i).TableRange2.Clear eliminates the
pivottable from worksheet and collection while pivotchache object still
remains in the workbook.

Any ideas?

Best regards





All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com