Private Sub Text1_Change() If Not IsNumeric(Text1.Text) Then Text1.Text = "" Else 'exécution de ton code End If End Sub
Private Sub Text1_Change() On Error Resume Next Texte = Text1.text Dim Good As Boolean For I = 1 to Len(Texte) Good = False For J = 0 To 9 If Mid(Texte,i,1) Trim(" " & J) Then Good True Next J If Good = False Then Text1.Text = "" Exit Sub End If Next I End Sub