TextBox formatierung nur ein Komma
26.12.2006 10:16:00
André
ich will das in einem Textfeld nur Zahlen eingegeben werden können.
Das habe ich soweit mit dem Befehl hin bekommen.
<pre>
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If Chr(KeyAscii) Like "[0-9,-]" = False Then
KeyAscii = 0
End If
End Sub</pre>
Jetzt will ich aber, das man nur ein Komma eingeben kann.
Was muss ich da schreiben und wohin?
Anzeige