Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

112
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda