Share via


PivotTable.RepeatAllLabels Method

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub RepeatAllLabels ( _
    Repeat As XlPivotFieldRepeatLabels _
)
'Usage
Dim instance As PivotTable
Dim Repeat As XlPivotFieldRepeatLabels

instance.RepeatAllLabels(Repeat)
void RepeatAllLabels(
    XlPivotFieldRepeatLabels Repeat
)

Parameters

Remarks

Using the RepeatAllLabels(XlPivotFieldRepeatLabels) 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.

See Also

Reference

PivotTable Interface

PivotTable Members

Microsoft.Office.Interop.Excel Namespace