共用方式為


PivotField.DrilledDown Property (Excel)

True if the flag for the specified PivotTable field or PivotTable item is set to "drilled" (expanded, or visible). Read/write Boolean.

Syntax

expression .DrilledDown

expression A variable that represents a PivotField object.

Remarks

You can use this property only for OLAP data sources.

You cannot set this property if the field or item is hidden.

Example

This example sets the flags to “not drilled” for all items in the state field in the third PivotTable report on the active worksheet.

ActiveSheet.PivotTables("PivotTable3") _ 
 .PivotFields("state").DrilledDown = False

請參閱

概念

PivotField Object Members

PivotField Object