1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| For i = 12 To Columns.Count
If Cells(Target.Row, i).Interior.Color = RGB(0, 176, 240) Or Cells(Target.Row, i).Interior.Color = RGB(0, 204, 102) Or Cells(Target.Row, i).Interior.Color = RGB(255, 51, 153) Then
If Drapeau_Date = False Then
Drapeau_Date = True
.Range("BA33") = Cells(6, i)
Numéro_Semaine = WorksheetFunction.WeekNum(Cells(6, i), 2)
If Year(Cells(6, i)) <> Year(Cells(6, 26)) Then
.Range("V12") = 1
Else
.Range("V12") = Numéro_Semaine
End If
End If
Compteur_Jours = Compteur_Jours + 1
End If
Next i
.Range("CC33") = Compteur_Jours & "J"
.Select |