Sub show_resultIDF()
Application.ScreenUpdating = False
For I = 1 To 8
With ActiveSheet
.Shapes("idfrce" & I).ShapeRange.Fill.ForeColor.RGB = RGB(242, 242, 242)
Next
borne_1 = Cells(33, 2)
borne_2 = Cells(34, 2)
borne_3 = Cells(35, 2)
borne_4 = Cells(35, 2)
J = 2
While Sheets("resultIDF").Cells(J, 4) <> ""
K = Sheets("resultIDF").Cells(J, 1)
If Sheets("resultIDF").Cells(J, 4) > borne_4 Then
.Shapes("idfrce" & K).ShapeRange.Fill.ForeColor.RGB = RGB(0, 0, 102)
ElseIf Sheets("resultIDF").Cells(J, 4) > borne_3 Then
.Shapes("idfrce" & K).ShapeRange.Fill.ForeColor.RGB = RGB(0, 38, 140)
ElseIf Sheets("resultIDF").Cells(J, 4) > borne_2 Then
.Shapes("idfrce" & K).ShapeRange.Fill.ForeColor.RGB = RGB(0, 77, 179)
ElseIf Sheets("resultIDF").Cells(J, 4) > borne_1 Then
.Shapes("idfrce" & K).ShapeRange.Fill.ForeColor.RGB = RGB(0, 115, 217)
ElseIf Sheets("resultIDF").Cells(J, 4) > 0 Then
.Shapes("idfrce" & K).ShapeRange.Fill.ForeColor.RGB = RGB(0, 153, 255)
End If
J = J + 1
Wend
End With
Application.ScreenUpdating = True
End Sub