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 29 30
| Do While semaine <= 58
semaine = 0 'Colonne
m = 5 'debut colonne pour 1 semaine
l = 8 'fin colone pour 1 semaine
lignedebut = 9 'Ligne de départ
Dim LastRowP As Integer 'Recherche du numéro de ligne
Dim numeroligne As Integer 'numéro de ligne
LastRowP = shH1.Range("C64555").End(xlUp).Row 'Recherche du nombre de ligne
For numeroligne = 9 To LastRowP
numeroligne = 9 ' Configuration du numéro de ligne
Ligfabc1 = numeroligne ' Ligne fabrication code 1
Colfabc1 = m + 1 ' Colonne fabrication code 1
Ligratio = numeroligne ' Ligne ratio
Colratio = 3 ' Colonne ratio
If shH1.Range("C" & numeroligne).Value >= 800000 Then
shH1.Cells(numeroligne + 1, m + 2).Interior.Color = RGB(224, 160, 96) And shH1.Cells(numeroligne + 1, m + 2).Value = "=Cells(Ligfabc1, Colfabc1) * Cells(Ligratio, Colratio)"
End If
numeroligne = numeroligne + 1
semaine = semaine + 1
' Refaire les formules toutes les 4 colonnes
m = m + 4
l = l + 4
Exit For
Next |
Partager