Delete Pivot Table from a Worksheet

Contents
[ ]

The following sample code deletes two pivot tables from the worksheet. First, it removes a pivot table using the Worksheet.PivotTables.Remove() method, and then it removes a pivot table using the Worksheet.PivotTables.RemoveAt() method.