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 26 27 28
| Dim LeSheet As Worksheet, i&, mois
mois = Array("", "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aôut", "Septembre", "Octobre", "Novembre", "Décembre")
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
With Sheets("Dashboard")
With .Range("AD6:AO6")
.NumberFormat = "0" 'formatage ligne 6
.Offset(1).NumberFormat = "0" 'formatage ligne 7
.Offset(2).NumberFormat = "0%" 'formatage ligne 8
.Offset(3).NumberFormat = "0" 'formatage ligne 9
.Offset(4).NumberFormat = "0" 'formatage ligne 10
.Offset(5).NumberFormat = "0%""" 'formatage ligne 11
For i = 1 To .Cells.Count
Set LeSheet = Sheets(mois(i))
.Cells(i) = LeSheet.Range("F226").Value 'ligne 6
.Cells(i).Offset(1, 0) = LeSheet.Range("G226").Value 'ligne 7
.Cells(i).Offset(2, 0) = LeSheet.Range("H226").Value 'ligne 8
.Cells(i).Offset(3, 0) = LeSheet.Range("I226").Value 'ligne 9
.Cells(i).Offset(4, 0) = LeSheet.Range("J226").Value 'ligne 10
.Cells(i).Offset(5, 0) = LeSheet.Range("K226").Value 'ligne 11
Next
End With
End With
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True |
Partager