Re,
essaie avec ces deux codes à placer dans un module (pas dans la feuille comme tu l'as fait dans ton fichier) et ensuite dessine les boutons par la barre d'outils "formulaire" et associent les à ces deux macros
Sub fiche_par_equipes()
'Macro dan pour Lacombine le 22/07/2010
With Sheets("Stats Neocase")
Set Plage = .Range("A1:F" & .Range("A65536").End(xlUp).Row)
.PivotTableWizard SourceType:=xlDatabase, _
SourceData:=Plage, TableDestination:="", TableName:="TCD1"
With ActiveSheet.PivotTables("TCD1")
.AddFields RowFields:="Équipe historique"
With .PivotFields("Type de fiche")
.Orientation = xlDataField
.Name = "Nombre de Type de fiche"
.Function = xlCount
End With
End With
End With
End Sub
Sub fiche_par_cc()
'Macro dan pour Lacombine le 22/07/2010
With Sheets("Stats Neocase")
Set Plage = .Range("A1:F" & .Range("A65536").End(xlUp).Row)
.PivotTableWizard SourceType:=xlDatabase, _
SourceData:=Plage, TableDestination:="", TableName:="TCD2"
With ActiveSheet.PivotTables("TCD2")
.AddFields RowFields:=Array("Intervenant historique", "Type de fiche")
With .PivotFields("Type de fiche")
.Orientation = xlDataField
.Name = "Nombre de Type de fiche"
.Function = xlCount
End With
End With
End With
End Sub
Si ok n'oublie pas de cloturer le fil en cliquant sur le V de couleur vert à coté du bouton Editer
Amicalement