Private Sub worksheet_activate()
Call Avis
End Sub
Sub Avis()
Dim i As Long
Application.ScreenUpdating = False
For i = Cells(Rows.Count, "K").End(xlUp).Row To 40 Step -1
If IsNumeric(Range("K" & i)) Then
Select Case Range("K" & i)
Case 0
Range("K" & i).Offset(, 2) = ""
Case 0.1 To 0.2499
Range("K" & i).Offset(, 2) = "Notion non acquise!"
Case 0.25 To 0.3999
Range("K" & i).Offset(, 2) = "Résultats très moyens !"
Case 0.4 To 0.5999
Range("K" & i).Offset(, 2) = "Résultats moyens ! "
Case 0.6 To 0.7999
Range("K" & i).Offset(, 2) = "C'est bien !"
Case 0.8 To 1
Range("K" & i).Offset(, 2) = "C'est très bien !"
End Select
End If
Next
Application.ScreenUpdating = True
End Sub