Results 1 to 20 of 32

Thread: Pivot Tables: error in 'Field.CurrentPage = NewCat'

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #31
    VBAX Newbie
    Joined
    May 2022
    Posts
    2
    Location
    Hola Ray707.
    He sufrido este mismo problema desde hace unos meses.


    Para solucionarlo he hecho 2 cosas:
    1: El campo currentPage debe ser tipo Variant
    2: Escribir la sentencia completa obviando los Active... y los With .


    Prueba lo siguiente


    Dim NewCat As Variant
    ....
    
    
    Worksheets("Client").PivotTables("PivotTable7").PivotFields("TEBUD").ClearAllFilters
    Worksheets("Client").PivotTables("PivotTable7").PivotFields("TEBUD").CurrentPage = NewCat
    Last edited by Aussiebear; 05-03-2022 at 01:33 PM. Reason: Added code tags to supplied code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •