ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   PivotTable controlled by more than one page field item (https://www.excelbanter.com/excel-programming/341529-pivottable-controlled-more-than-one-page-field-item.html)

dan

PivotTable controlled by more than one page field item
 
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 ?


All times are GMT +1. The time now is 08:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com