Edit

Share via


SlicerPivotTables.AddPivotTable(PivotTable) Method

Definition

Adds a reference to a PivotTable to the SlicerPivotTables collection.

public:
 void AddPivotTable(Microsoft::Office::Interop::Excel::PivotTable ^ PivotTable);
public void AddPivotTable (Microsoft.Office.Interop.Excel.PivotTable PivotTable);

Parameters

PivotTable
PivotTable

A PivotTable object that represents the PivotTable to add.

Remarks

When a PivotTable is added to the SlicerPivotTables collection, it can be filtered by its parent SlicerCache and the slicers associated with it.

Applies to