Salut KTM le fil ...
Un truc comme ça peut être
Private Sub TextBox2_Change()
If Val(Left(TextBox2, 1)) < Val(Left(TextBox1, 1)) Then
TextBox2 = ""
Else
If Val(Mid(TextBox2, 2, 1)) <= Val(Mid(TextBox1, 2, 1)) Then
TextBox2 = Left(TextBox2, 1)
End If
End If
TextBox2 = Left(TextBox2, 3)
If Not IsNumeric(Mid(TextBox2, 1, 1)) Then TextBox2 = Mid(TextBox2, 2)
If Not IsNumeric(Mid(TextBox2, 2, 1)) Then TextBox2 = Left(TextBox2, 1) & Mid(TextBox2, 3)
If Not IsNumeric(Mid(TextBox2, 3, 1)) Or Val(TextBox2) > 100 Then TextBox2 = Left(TextBox2, 2)
Range("B1").Value = TextBox2.Value
End Sub