Partager via


CubeField Members (Excel)

Represents a hierarchy or measure field from an OLAP cube. In a PivotTable report, the CubeField object is a member of the CubeFields collection.

Methods

Name

Description

AddMemberPropertyField

Adds a member property field to the display for the cube field.

ClearManualFilter

The ClearManualFilter method provides an easy way to set the Visible property to True for all items of a PivotField in PivotTables, and to empty the HiddenItemsList/VisibleItemsList collections in OLAP PivotTables.

CreatePivotFields

The CreatePivotFields method enables users to apply a filter to PivotFields not yet added to the PivotTable by creating the corresponding PivotField object.

Delete

Deletes the object.

Properties

Name

Description

AllItemsVisible

The AllItemsVisible property checks whether manual filtering is applied to a PivotField or CubeField. Read-only Boolean.

Application

When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

Caption

Returns a String value that represents the label text for the cube field.

Creator

Returns a 32-bit integer that indicates the application in which this object was created. Read-only Long.

CubeFieldSubType

Specifies the type of a CubeField. Read-only.

CubeFieldType

Indicates whether the OLAP cube field is a hierarchy field or a measure field. Can be one of the XlCubeFieldType constants.

CurrentPageName

Returns or sets the page name for a CubeField. Read/write String.

DragToColumn

True if the specified field can be dragged to the column position. The default value is True. Read/write Boolean.

DragToData

True if the specified field can be dragged to the data position. The default value is True. Read/write Boolean

DragToHide

True if the field can be hidden by being dragged off the PivotTable report. The default value is True. Read/write Boolean.

DragToPage

True if the field can be dragged to the page position. The default value is True. Read/write Boolean.

DragToRow

True if the field can be dragged to the row position. The default value is True. Read/write Boolean.

EnableMultiplePageItems

Set to True to allow multiple items in the page field area for OLAP PivotTables to be selected. The default value is False. Read/write Boolean.

FlattenHierarchies

Returns or sets whether items from all levels of the specified hierarchy field are displayed in the same field of a PivotTable report based on an OLAP cube. Read/write

HasMemberProperties

Returns True when there are member properties specified to be displayed for the cube field. Read-only Boolean.

HierarchizeDistinct

Returns or sets whether to order and remove duplicates when displaying the specified hierarchy field in a PivotTable report based on an OLAP cube. Read/write

IncludeNewItemsInFilter

The IncludeNewItemsInFilter property is used to track included/excluded items in OLAP PivotTables. Read/write.

IsDate

Returns True if the CubeField is a date. Read-only Boolean.

LayoutForm

Returns or sets the way the specified PivotTable items appear—in table format or in outline format. Read/write XlLayoutFormType.

LayoutSubtotalLocation

Returns or sets the position of the PivotTable field subtotals in relation to (either above or below) the specified field. Read/write XlSubtototalLocationType.

Name

Returns a String value that represents the name of the object.

Orientation

Returns or sets a XlPivotFieldOrientation value that represents the location of the field in the specified PivotTable report.

Parent

Returns the parent object for the specified object. Read-only.

PivotFields

Returns the PivotFields collection. This collection contains all PivotTable fields, including those that aren’t currently visible on-screen. Read-only PivotFields object.

Position

Returns or sets a Long value that represents the position of the hierarchy field on the PivotTable report when it’s dragged from the field well.

ShowInFieldList

When set to True (default), a CubeField object will be shown in the field list. Read/write Boolean.

TreeviewControl

Returns the TreeviewControl object of the CubeField object, representing the cube manipulation control of an OLAP-based PivotTable report. Read-only.

Value

Returns a String value that represents the name of the specified field.