Posting a sample is always a good idea... though not really any different than prior post the below is a slight variation in terms of processing multiple page fields of interest:
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Dim ptTable As PivotTable, vFields As Variant, lngField As Long
vFields = Array("SLS_MDL","origin","destination")
On Error GoTo ExitPoint
Application.EnableEvents = False
For Each ptTable In ActiveSheet.PivotTables
If ptTable <> Target Then
For lngField = LBound(vFields) To UBound(vFields) Step 1
ptTable.PageFields(vFields(lngField)).CurrentPage = Target.PageFields(vFields(lngField)).CurrentPage.Value
Next lngField
End If
Next ptTable
ExitPoint:
Application.EnableEvents = True
End Sub
EDIT: worth adding that the above is not designed for use wherein multi item selection is active on the Page Field (ie hidden items pre XL2007)
It's always worth outlining version... 2007 and beyond are quite different in many respects to their predecessors - esp. in regard to PTs
Bookmarks