Share via


PivotTable.ClearAllFilters Method

The ClearAllFilters() method deletes all filters currently applied to the PivotTable. This includes deleting all filters in the PivotFilters collection of the PivotTable object, removing any manual filtering applied and setting all PivotFields in the Report Filter area to the default item.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub ClearAllFilters
'Usage
Dim instance As PivotTable

instance.ClearAllFilters()
void ClearAllFilters()

Remarks

After calling the ClearAllFilters() method, the PivotFilters collection will be empty.

See Also

Reference

PivotTable Interface

PivotTable Members

Microsoft.Office.Interop.Excel Namespace