PivotCell.DataField (Excel)

Cette propriété renvoie un objet PivotField qui correspond au champ de données sélectionné.

Cette propriété renvoie une erreur si l’objet PivotCell ne fait pas partie des constantes de XlPivotCellType autorisées: XlPivotCellTypeDataField, XlPivotCellTypeSubtotalou XlPivotCellTypeGrandTotal.


Dim pvtfDataField As PivotField
Set pvtfDataField = ActiveCell.PivotCell.DataField