PivotFields Method

PivotFields Method

See Also         Example         Applies To

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

Syntax 1

expression.PivotFields(Index)

Syntax 2

expression.PivotFields

expression   Required. An expression that returns a PivotTable object.

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

Remarks

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