I would like to be able to select filtered items in this pivot table, such as CRD_RWG = 1. However, my code below shows me Application or object definied error. If I add .CurrentPage to ("CRD_RWG"). CurrentPage shows me that Run-time error 1004. Unable to set CurrentPage property of PivotField class
My part of code :
similiar cross post : VBA Application definied error in pivot table
My part of code :
VBA Code:
With sh_d.PivotTables(tbName1)
With .PivotFields("CRD_RWG")
.ClearAllFilters
.Orientation = xlPageField
.Position = 1
.CurrentPage = 1
similiar cross post : VBA Application definied error in pivot table