PivotTable.DataFields (Excel)

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

DataFields (Index)

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


Dim pfsDataFields As PivotFields
Set pfsDataFields = ActiveCell.PivotTable.DataFields