PivotTable.RepeatAllLabels method (Excel)

Specifies whether to repeat item labels for all PivotFields in the specified PivotTable.

Syntax

expression.RepeatAllLabels (Repeat)

expression A variable that represents a PivotTable object.

Parameters

Name Required/Optional Data type Description
Repeat Required XlPivotFieldRepeatLabels Specifies whether to repeat all field item labels in a PivotTable report.

Return value

Nothing

Remarks

Using the RepeatAllLabels method corresponds to the Repeat All Item Labels and Do Not Repeat Item Labels commands on the Report Layout drop-down list of the PivotTable Tools Design tab.

To specify whether to repeat item labels for a single PivotField, use the RepeatLabels property.

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.