Dim pi As PivotItem
'Active tous les éléments
With ActiveSheet.PivotTables("Tableau croisé dynamique1").PivotFields("Gauche component")
.EnableMultiplePageItems = True
.CurrentPage = "(All)" 'ou TOUS
End With
'PAr la suite, il faudrait que je cache les "non-numériques"
'J'ai donc testé avec ça, mais ca bug à la première ligne :(
For Each pi In ActiveSheet.PivotTables("Tableau croisé dynamique1").PivotFields( _
"Gauche component")
If Not IsNumeric(pi) Then
pi.Visible = False
End If
Next pi