Private Sub Workbook_SheetPivotTableChangeSync(ByVal Sh As Object, ByVal Target As PivotTable)
If Sh.CodeName <> "Détails Découverts PRO Agence" Then Exit Sub ' A adapter selon le classeur
Dim pt As PivotTable
Dim i As Long
Dim pi1 As PivotItem, pi2 As PivotItem
Application.EnableEvents = False
Application.ScreenUpdating = False
'Synchro
For Each pt In Sh.PivotTables
If pt <> Target Then
'Synchro autre TCD
pt.PageFields("Portefeuille").ClearManualFilter 'Champ à adapter selon le cas
For Each pi2 In pt.PageFields("Portefeuille").PivotItems
For Each pi1 In Target.PageFields("Portefeuille").PivotItems 'Champ à adapter selon le cas
If pi2.Caption = pi1.Caption Then
pi2.Visible = pi1.Visible
End If
Next pi1
Next pi2
End If
Next pt
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub