Bonjour,
Deux macros fonctionnelles ci-contre
Sub COLORIAGE()
For i = 4 To 16
For j = 2 To 6
Select Case Cells(i, j).Interior.Color
Case Is = RGB(255, 255, 0)
Cells(i, j + 6).Value = "OUI"
Case Is = RGB(255, 0, 0)
Cells(i, j + 6).Value = "OK"
Case Is = RGB(255, 255, 255)
Cells(i, j + 6).Value = "NON"
End Select
Next j
Next i
End Sub
Sub COLORIAGE_2()
For i = 4 To 16
For j = 2 To 6
If Cells(i, j).Interior.Color = RGB(255, 255, 0) Then
Cells(i, j + 6).Value = "OUI"
ElseIf Cells(i, j).Interior.Color = RGB(255, 0, 0) Then
Cells(i, j + 6).Value = "OK"
ElseIf Cells(i, j).Interior.Color = RGB(255, 255, 255) Then
Cells(i, j + 6).Value = "NON"
End If
Next j
Next i
End Sub
Bonne soirée !