Sub CoupleCouleurs()
Dim DerL&, DerC&, c&, i&, t&, u&, ti
Application.ScreenUpdating = False
Application.EnableEvents = False
WsCp.Activate
DerL = Cells(Rows.Count, 11).End(xlUp).Row
DerC = Cells(1, Columns.Count).End(xlToLeft).Column
For i = 13 To DerL Step 4
If Cells(i, 11) = Cells(4, 11) Or _
Cells(i, 11) = Cells(5, 11) Or _
Cells(i, 11) = Cells(6, 11) Or _
Cells(i, 11) = Cells(7, 11) Or _
Cells(i, 11) = Cells(8, 11) Or _
Cells(i, 11) = Cells(9, 11) Or _
Cells(i, 11) = Cells(10, 11) Or _
Cells(i, 11) = Cells(11, 11) Then t = 1
If Cells(i + 1, 11) = Cells(4, 11) Or _
Cells(i + 1, 11) = Cells(5, 11) Or _
Cells(i + 1, 11) = Cells(6, 11) Or _
Cells(i + 1, 11) = Cells(7, 11) Or _
Cells(i + 1, 11) = Cells(8, 11) Or _
Cells(i + 1, 11) = Cells(9, 11) Or _
Cells(i + 1, 11) = Cells(10, 11) Or _
Cells(i + 1, 11) = Cells(11, 11) Then u = 1
Cells(i + 2, 11) = t + u
t = 0: u = 0
Cells(i + 2, 6) = WorksheetFunction.Min(Range(Cells(i + 2, 11), Cells(i + 2, DerC)))
Cells(i + 2, 7) = WorksheetFunction.Max(Range(Cells(i + 2, 11), Cells(i + 2, DerC)))
Next i
Application.EnableEvents = True
Application.ScreenUpdating = True
Beep
End Sub