Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

102
Vistas
How to get the Pivot table name and pivot field name of the selected or active cell using Excel JavaScript API?

I am new to Excel JavaScript API.

My question is

How to get the Pivot table name and pivot field name of the selected or active cell using Excel JavaScript API?

how to get the same result with excel JS as we are getting from the below VBA code?

Sub GetPivotName()

Range("C2") = ActiveCell.PivotTable.Name

End Sub

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Have you tried Range.getPivotTables API to get the pivot tables? In the link there's also a piece of example code.

To get pivot fields, currently as far as I know you'll have to iterate through all pivot fields in the pivot tables to find out (via PivotHierarchy, as demonstrated here). As someone else has asked in Excel Range.PivotField equivalent for JavaScript API, currently there isn't a JS equivalent of Range.PivotField in VBA. If you'd like to request for this feature, please feel free to post it to Microsoft 365 Developer Platform Ideas Forum.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda