DataFields Property

See Also         Example         Applies To

Returns an object that represents either a single PivotTable field (a PivotField object, Syntax 1) or a collection of all the fields (a PivotFields object, Syntax 2) that are currently shown as data fields. Read-only.

Syntax 1

expression.DataFields(Index)

Syntax 2

expression.DataFields

expression   Required. An expression that returns a PivotTable object.

Index   Optional Variant. The field name or number (can be an array to specify more than one field).