Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.36 KB

Excel.PivotField.UseMemberPropertyAsCaption.md

File metadata and controls

37 lines (21 loc) · 1.36 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotField.UseMemberPropertyAsCaption property (Excel)
vbaxl10.chm240139
vbaxl10.chm240139
Excel.PivotField.UseMemberPropertyAsCaption
4e5e9a53-c746-25db-78c0-115282851829
05/07/2019
medium

PivotField.UseMemberPropertyAsCaption property (Excel)

This property is used to control whether member property captions are used for PivotItem captions of the PivotField. Read/write Boolean.

Syntax

expression.UseMemberPropertyAsCaption

expression A variable that represents a PivotField object.

Remarks

If UseMemberPropertyAsCaption is set to True for a PivotField, MemberPropertyCaption specifies which member property caption to display. If none is specified, the first member property of that PivotField (in data source order) will be displayed as the caption for items of that PivotField.

If UseMemberPropertyAsCaption is set to False, the regular PivotItem captions are used for the PivotField.

If you try to set UseMemberPropertyAsCaption to True for a PivotField with no member properties, a run-time error is returned. For PivotFields with no member properties, the property is always False.

[!includeSupport and feedback]