Comparteix a través de


Propiedad PivotValueCell.PivotCell (Excel)

Devuelve el objeto PivotCell que especifica la ubicación de PivotValueCell. Solo lectura.

Sintaxis

expresión. PivotCell

expresión Variable que representa un objeto PivotValueCell .

Valor de propiedad

PIVOTCELL

Ejemplo

En el ejemplo de código siguiente se usa la propiedad PivotCell para obtener la expresión Expresiones multidimensionales (MDX) para la celda especificada.

Sub GetMDX()
   'Get the MDX query for a particular PivotCell in a workbook level PivotTable
   MsgBox "The MDX for the PivotCell 1, 1: " & _
   ThisWorkbook.PivotTables(1).PivotValueCell(1, 1).PivotCell.MDX
End Sub

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.