breynolds0431
Active Member
- Joined
- Feb 15, 2013
- Messages
- 303
- Office Version
- 365
- 2016
- Platform
- Windows
Hi. I have a combo box that the user selects their own name. The linked cell to the combo box is a named range. I was hoping to use that named range to apply a filter based on the name to four pivot tables. I was hoping this would do the trick, with the range set to the CurrentPage filter, but that was a no.
Code:
With ActiveSheet.PivotTables("PivotTable1").PivotFields("DR - L1")
.Orientation = xlPageField
.Position = 1
End With
ActiveSheet.PivotTables("PivotTable1").PivotFields("DR - L1"). _
CurrentPage = Sheets("dd").Range("AudSelected")
ActiveSheet.PivotTables("PivotTable1").PivotFields("DR - L1"). _
EnableMultiplePageItems = True
Last edited: