PivotTable.PivotFields(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.