Private Sub TextBox1_Change()
If Not IsNumeric(TextBox1) Then
MsgBox 'Vous ne pouvez entrer que des chiffres', vbCritical
TextBox1.SelStart = 0
TextBox1.SelLength = Len(TextBox1)
End If
End Sub
Private Sub TextBox1_Change()
If Not IsNumeric(TextBox1) Then
MsgBox 'Vous ne pouvez entrer que des chiffres', vbCritical
TextBox1.SelStart = 0
TextBox1.SelLength = Len(TextBox1)
End If
End Sub