PC Review


Reply
Thread Tools Rate Thread

Delete a Pivot Table

 
 
=?Utf-8?B?U2FlT25nSmVlTWE=?=
Guest
Posts: n/a
 
      8th Nov 2007
I have a Worksheet with a bunch of Controls (combo boxes, text boxes, etc)
and a Pivot Table. I need to be able to programmatically delete or remove the
Pivot Table without deleting the Worksheet (because I need to keep the
Controls intact). Does anyone know how to do that? BTW, even if it can't be
done programmatically, is there a way to do it manually? Thanks in advance.
Best Regards,
Dean
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      8th Nov 2007

Dean,
The help file is not much help on this one.
(I think the summer intern must have come up with this one)<g>

ActiveSheet.PivotTables("name").TableRange2.Clear
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"SaeOngJeeMa"
<(E-Mail Removed)>
wrote in message
I have a Worksheet with a bunch of Controls (combo boxes, text boxes, etc)
and a Pivot Table. I need to be able to programmatically delete or remove the
Pivot Table without deleting the Worksheet (because I need to keep the
Controls intact). Does anyone know how to do that? BTW, even if it can't be
done programmatically, is there a way to do it manually? Thanks in advance.
Best Regards,
Dean
 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      8th Nov 2007
To delete the first pivot table on the active sheet:

ActiveSheet.PivotTables(1).TableRange2.Clear


SaeOngJeeMa wrote:
> I have a Worksheet with a bunch of Controls (combo boxes, text boxes, etc)
> and a Pivot Table. I need to be able to programmatically delete or remove the
> Pivot Table without deleting the Worksheet (because I need to keep the
> Controls intact). Does anyone know how to do that? BTW, even if it can't be
> done programmatically, is there a way to do it manually? Thanks in advance.
> Best Regards,
> Dean



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
=?Utf-8?B?U2FlT25nSmVlTWE=?=
Guest
Posts: n/a
 
      8th Nov 2007
Thanks Jim and Debra. Works great!
--
Best Regards,
Dean


"Debra Dalgleish" wrote:

> To delete the first pivot table on the active sheet:
>
> ActiveSheet.PivotTables(1).TableRange2.Clear
>
>
> SaeOngJeeMa wrote:
> > I have a Worksheet with a bunch of Controls (combo boxes, text boxes, etc)
> > and a Pivot Table. I need to be able to programmatically delete or remove the
> > Pivot Table without deleting the Worksheet (because I need to keep the
> > Controls intact). Does anyone know how to do that? BTW, even if it can't be
> > done programmatically, is there a way to do it manually? Thanks in advance.
> > Best Regards,
> > Dean

>
>
> --
> Debra Dalgleish
> Contextures
> http://www.contextures.com/tiptech.html
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to delete a row in the pivot table for the pivot chart =?Utf-8?B?YmFicw==?= Microsoft Excel Misc 2 13th Nov 2007 12:01 PM
Delete Pivot table hurriance Microsoft Excel Programming 1 15th Jun 2006 09:07 AM
Delete pivot table HSalim[MVP] Microsoft Excel Programming 2 23rd Dec 2005 10:21 PM
delete pivot table billq Microsoft Excel Discussion 3 17th Jan 2005 10:15 PM
Delete Pivot Table sapta Microsoft Excel Programming 0 10th Sep 2003 05:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.