PivotTable.DrillTo method (Excel)
Enables you to drill to a location within an OLAP-based or PowerPivot-based cube hierarchy.
Syntax
expression.DrillTo (PivotItem, CubeField, PivotLine)
expression A variable that represents a PivotTable object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
PivotItem | Required | PIVOTITEM | The member from which the drill operation is performed. |
CubeField | Required | CUBEFIELD | The target hierarchy being drilled to. |
PivotLine | Optional | Variant | Specifies the line in the PivotTable where the operation starting member resides. In cases where PivotLine is not specified, defaults to the top PivotLine where the member appears. |
Return value
VOID
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.