Michaels
Active Member
- Joined
- Apr 2, 2009
- Messages
- 404
Hello !
I am trying to change the format of textbox1 on userform1 as below:
Private Sub Textbox1_Change()
Textbox1.Text = Format$(TB1.Text, "0.00")
End Sub
The above code is not working.
What I need is like this:
When the userform initializes, the number format (or the numbers) in textbox on userform1 is 0.000. When my cursor reaches inside the textbox, and I type a number, say 25000, and press tab to move to the next textbox, the number in textbox1 changes to 25,000
You help is highly appreciated in this regard.
Thank you
I am trying to change the format of textbox1 on userform1 as below:
Private Sub Textbox1_Change()
Textbox1.Text = Format$(TB1.Text, "0.00")
End Sub
The above code is not working.
What I need is like this:
When the userform initializes, the number format (or the numbers) in textbox on userform1 is 0.000. When my cursor reaches inside the textbox, and I type a number, say 25000, and press tab to move to the next textbox, the number in textbox1 changes to 25,000
You help is highly appreciated in this regard.
Thank you