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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
'----CODE COULEUR----
couleurcouvert = 5296274
couleurarb = 49407
couleuratt = 65535
couleuracouvr = 15773696
couleurrefus = 255
couleurnuit = -10477568
'---COLORATION---
For i = 6 To 7367
If Cells(i, 4).Value = "J" Then
If LCase(Cells(i, 18).Value) = "en attente" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then Cells(i, j).Interior.Color = couleuratt
Next j
ElseIf LCase(Cells(i, 18).Value) = "validée" And Cells(i, 22) = "" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then Cells(i, j).Interior.Color = couleuracouvr
Next j
ElseIf LCase(Cells(i, 18).Value) = "validée" And Cells(i, 22) <> "" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then Cells(i, j).Interior.Color = couleurcouvert
Next j
ElseIf LCase(Cells(i, 18).Value) = "en arbitrage" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then Cells(i, j).Interior.Color = couleurarb
Next j
ElseIf LCase(Cells(i, 18).Value) = "refusée" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then Cells(i, j).Interior.Color = couleurrefus
Next j
End If
ElseIf Cells(i, 4).Value = "N" Then
If LCase(Cells(i, 18).Value) = "en attente" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then
Cells(i, j).Interior.Color = couleuratt
With Cells(i, j).Borders
.Weight = xlThick
.Color = couleurnuit
End With
End If
Next j
ElseIf LCase(Cells(i, 18).Value) = "validée" And Cells(i, 22) = "" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then
Cells(i, j).Interior.Color = couleuracouvr
With Cells(i, j).Borders
.Weight = xlThick
.Color = couleurnuit
End With
End If
Next j
ElseIf LCase(Cells(i, 18).Value) = "validée" And Cells(i, 22) <> "" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then
Cells(i, j).Interior.Color = couleurcouvert
With Cells(i, j).Borders
.Weight = xlThick
.Color = couleurnuit
End With
End If
Next j
ElseIf LCase(Cells(i, 18).Value) = "en arbitrage" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then
Cells(i, j).Interior.Color = couleurarb
With Cells(i, j).Borders
.Weight = xlThick
.Color = couleurnuit
End With
End If
Next j
ElseIf LCase(Cells(i, 18).Value) = "refusée" Then
For j = 23 To 57
If Cells(i, j).Value = 1 Then
Cells(i, j).Interior.Color = couleurrefus
With Cells(i, j).Borders
.Weight = xlThick
.Color = couleurnuit
End With
End If
Next j
End If
End If
Next i
End Sub |
Partager