I All,
I have 3 Pivot Tables named PT01, PT02 and PT03 in one worksheet based on same table and have same single field in Report Filter.
I want that by changing the Report Filter of PT01, the ones for PT02 and PT03 will update automatically. I've tried the following:
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Dim DateVal As String
DateVal = Target.PivotFields("Month").CurrentPage.Value
PivotTables("PT03").PivotFields("Month").CurrentPage = strPageValue
PivotTables("PT02").PivotFields("Month").CurrentPage = strPageValue
End Sub
Any idea why this does not work and how could I fix this?
Thanks for any help,
D
I have 3 Pivot Tables named PT01, PT02 and PT03 in one worksheet based on same table and have same single field in Report Filter.
I want that by changing the Report Filter of PT01, the ones for PT02 and PT03 will update automatically. I've tried the following:
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Dim DateVal As String
DateVal = Target.PivotFields("Month").CurrentPage.Value
PivotTables("PT03").PivotFields("Month").CurrentPage = strPageValue
PivotTables("PT02").PivotFields("Month").CurrentPage = strPageValue
End Sub
Any idea why this does not work and how could I fix this?
Thanks for any help,
D