PivotTable.PivotFields(Object) Method

Definition

Returns an object that represents either a single PivotTable field (a PivotField object) or a collection of both the visible and hidden fields (a PivotFields object) in the PivotTable report. Read-only.

public object PivotFields (object Index);
Public Function PivotFields (Optional Index As Object) As Object

Parameters

Index
Object

Optional Object. The name or number of the field to be returned.

Returns

Remarks

For OLAP data sources there are no hidden fields, and the object or collection that’s returned reflects what’s currently visible.

Applies to