ich hab folgendes Problem, ich möchte eine Textbox auf eine Userform so einrichten, das wenn ich ein "," (komma) eintippe nur noch 2 zahlen hinterm komma tippen kann.
Danke im voraus
Private Sub TextBox1_Change()
If InStrRev(TextBox1.Text, ",") > 2 Then
TextBox1.Text = Left(TextBox1.Text, InStr(1, TextBox1.Text, ",") + 2)
End If
End Sub