Bonjour,
tu as juste à modifier un peu le code de curulis :
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("B:B")) Is Nothing Then
If Target.Offset(0, -1) = "" Then Exit Sub
Application.EnableEvents = False
If Target.Offset(0, -1) <= 100 Then Target = Round(Target, 0) Else Target = Round(Target, 1)
Application.EnableEvents = True
End If
End Sub
Tu as d'autres types d'arrondis. Ici c'est au plus proche : 2.6 => 3
eric