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

308
Vistas
How can I change the index of a PivotTable

I am trying to automatically mail some reports (which are essentially Pivot Tables) using VBA script. I have multiple Pivot tables in some of my sheets. How do I ensure that a particular Pivot Table is always indexed as 1.

Example:

On a worksheet I two Pivot Tables - PvtTable1 & PvtTable2. In my VBA code, when I reference a Pivot Table using the code, ActiveSheet.PivotTables(1) I want it to always refer it to PvtTable1. Not PvtTable. How can I do that? I don't want to refer my Pivot Tables using their names, as I intend to use my VBA code in a FOR LOOP.

Dim current As Worksheet

For Each current In Worksheets
         <my VBA Code statements>
         Set PvtTableRng = current.PivotTables(1).TableRange1
         <some more VBA Code>
Next 
about 4 years ago · Santiago Trujillo
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