PivotTable controlled by more than one page field item

D

Dan

I am trying to build a pivot table/chart in which the PageFields will only
list the remaining or available PageFieldItems after other choice
PageField--constraints--are applied.
This code works for one page field
************
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$K$2" Then
Sheets("Pivot").PivotTables("PivotTable1") _
.PivotFields("Year").CurrentPage = Target.Value
End If
End Sub

************
but not for multiple page fields. Is there an answer ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top