Sandy,
Could you be more specific? When do you want the comma to appear? While the form is still displayed or when the data is entered on a spreadsheet?
thanks
Only when the form is diplayed
Thanks
Sandy
Sandy,
Looks like your best choice is to use the BeforeUpdate event, like so:
Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
If IsNumeric(TextBox1.Text) Then
TextBox1.Text = Format(TextBox1.Text, "#,###")
Else
MsgBox "Hey! Enter a number!"
TextBox1.Text = ""
End If
End Sub
Paste that into the code sheet for your text box and when the user tabs to the next box or control the text will update with a comma. Some additional code may be necessary, but that should get you started.
have fun
Thank You!, Bariloche(NT)
Looks like your best choice is to use the BeforeUpdate event, like so: Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean) If IsNumeric(TextBox1.Text) Then
: Only when the form is diplayed : Thanks : Sandy