1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Private Sub Worksheet_Change(ByVal Target As Range)
Dim Num As Long, n As Long
Num = 0
n = Target.Row
For x = 1 To 17
If Cells(n, 4) = "canceled" And Cells(n, 17) = "Validé" Then
Cells(n, x).Interior.ColorIndex = 41
End If
If Cells(n, 4) = "canceled" And Cells(n, 17) = "Validé" Then
Num = Cells(n, 6)
End If
If Num Is Change Then 'A ce niveau j'obtiens= incompatibilité de type
For A = 9 To 100
For b = 1 To 17
If Cells(A, 6) = Num Then
Cells(A, b).Interior.ColorIndex = 41
End If
Next b '
Next A '
End If
Next x '
End Sub |
Partager