Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am wondering if there is some simple code that I can run that will
automatically delete all Pivot tables in a Workbook, upon close of the Workbook, or delete all sheets that contain Pivot Tables, upon close of the Workbook. I have an Excel file on our firms LAN, which contains a lit of useful data for several VPs, who go into the file to check certain items, and make a few updates. I would like to give them a way to create Pivot Tables on the fly (I already have the code for this) but I dont want them to be able to save the Pivot Tables because I surmise it will quickly bloat to un unmanageable size and the performance (over the LAN) will slow considerably. Again, I just want to save a few changes that some of the VPs will make, in their forecasting, and then automatically delete any and all Pivot Tables. I suspect it will look something like this: Private Sub Workbook_BeforeClose(Cancel As Boolean) €˜If Pivot Table 1 Then €˜Delete Pivot Table €˜End if End Sub Thanks in advance!! Ryan--- -- RyGuy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
trying to delete a row in the pivot table for the pivot chart | Excel Discussion (Misc queries) | |||
Determine If Pivot Table Exists | Excel Programming | |||
If Pivot Table Exists | Excel Programming | |||
Im so close. Need variable range for the pivot table | Excel Programming | |||
Delete pivot table | Excel Programming |