ShowDetail Property

Applies To

PivotItem Object, Range Object.

Description

True if the outline is expanded for the specified range (the detail of the column or row is visible). The specified range must be a single summary column or row in an outline. Read-write.

For the PivotItem object (or the Range object if the range is in a PivotTable), this property is True if the pivot item is showing detail.

Remarks

If the specified range is not in a PivotTable, the following comments apply:

If the specified range is in a PivotTable, it is possible to set this property for more than one cell at once if the range is contiguous. To return this property, the range must be a single cell.

Example

This example shows detail for the summary row of an outline on Sheet1. Before running this example, create a simple outline that contains a single summary row, and then collapse the outline so that only the summary row is showing. Select one of the cells in the summary row, and then run the example.


Worksheets("Sheet1").Activate
Set myRange = ActiveCell.CurrentRegion
lastRow = myRange.Rows.Count
myRange.Rows(lastRow).ShowDetail = True