Delete pivot table

Z

Zic

Hi all
XL2003
I have been looking for a "sensible" way to delete a pivot table in my
workbook but to no avail.
Currently here is below what I use, can someone supply a better method?
ThisWorkbook.Sheets("Data").Activate
ActiveSheet.PivotTables(1).PivotSelect "", _
xlDataAndLabel, True
Selection.Clear

TIA

Zic
 
D

Debra Dalgleish

You can use the TableRange2 property:

ActiveSheet.PivotTables(1).TableRange2.Clear
 
Top