1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| Sub Bouton7_Cliquer()
'
' Bouton7_Cliquer Macro
'
Dim WshG As Worksheet, WshT As Worksheet
Set WshG = ThisWorkbook.Worksheets("agence")
Set WshT = ThisWorkbook.Worksheets("Base calculs")
Application.ScreenUpdating = False
WshT.Visible = True
With WshT .PivotTables("Tableau croisé dynamique15").PivotFields("Nombre de sortis")
.Calculation = xlPercentOfRow
.NumberFormat = "0%"
End WIth
WshT.Visible = False
Application.ScreenUpdating = True
WshG.Activate
Range("B75").Select
End Sub |
Partager