Public Sub raffraichissement_TCD()
' raffraichir ou actualiser le TCD
Dim mypivot As PivotTable
Dim ws As Worksheet
Set ws = Sheets("Feuil5")
'ws.Activate
For Each mypivot In Sheets("Feuil5").PivotTables
If mypivot.Name = "mon tableau croisé dynamique" Then
mypivot.RefreshTable
mypivot.PivotCache.Refresh
End If
Next mypivot
ws.Activate
Range("BD8").Select
'ActiveWorkbook.RefreshAll
End Sub