PivotField.ClearManualFilter Method

Provides an easy way to set the Visible property to True for all items of a PivotField in PivotTables, and to empty the HiddenItemsList and VisibleItemsList collections in OLAP PivotTables.

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

Syntax

'Declaration
Sub ClearManualFilter
'Usage
Dim instance As PivotField

instance.ClearManualFilter()
void ClearManualFilter()

Remarks

This method is available for the PivotFieldObject in PivotTables and for the CubeField object in the OLAP PivotTables. Calling it for a PivotField in an OLAP PivotTable will return a run-time error.

After calling this method, the following collections are empty: HiddenItemsList, HiddenItems, VisibleItemsList, and VisibleItems.

See Also

Reference

PivotField Interface

PivotField Members

Microsoft.Office.Interop.Excel Namespace