1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Set CL = ThisWorkbook.Sheets("feuille")
For i = 1 To 10
If CL.Cells(i, "H").Value = 0001 Or CL.Cells(i, "H").Value = 0002 Or CL.Cells(i, "H").Value = 0003 Or CL.Cells(i, "H").Value = 1000 Or CL.Cells(i, "H").Value = 1001
CL.Cells(i, "H").Font.Color = RGB(255, 255, 255) 'Police Couleur Blanche
CL.Cells(i, "H").Interior.Color = RGB(255, 0, 0) 'Police Couleur Rouge
End If
If CL.Cells(i, "H").Value = 0004 Or CL.Cells(i, "H").Value = 0007 Or CL.Cells(i, "H").Value = 0204 Or CL.Cells(i, "H").Value = 1010 Or CL.Cells(i, "H").Value = 1011
CL.Cells(i, "H").Font.Color = RGB(255, 255, 255) 'Police Couleur Blanche
CL.Cells(i, "H").Interior.Color = RGB(228, 109, 10) 'Police Couleur Orange
End If
If CL.Cells(i, "H").Value = 0006 Or CL.Cells(i, "H").Value = 0120
CL.Cells(i, "H").Font.Color = RGB(255, 255, 255) 'Police Couleur Blanche
CL.Cells(i, "H").Interior.Color = RGB(0, 176, 80) 'Police Couleur Vert
End If |
Partager