CubeFields Object
A collection of all CubeField objects in a PivotTable report that is based on an OLAP cube . Each CubeField object represents a hierarchy or measure field from the cube.
Example
Use the CubeFields property to return the CubeFields collection. The following example creates a list of cube field names of the data fields in the first OLAP-based PivotTable report on Sheet1.
| Visual Basic for Applications |
|---|
|
Use CubeFields(), where is the cube field's index number, to return a single CubeFieldobject. The following example determines the name of the second cube field in the first PivotTable report on the active worksheet.
| Visual Basic for Applications |
|---|
|
See also:
| index | index |