Hi
I am trying to get textbox25 to automatically format the users input as £0,000 but no code that I try seems to work.
Thanks
Don
Hi
I am trying to get textbox25 to automatically format the users input as £0,000 but no code that I try seems to work.
Thanks
Don
I wouldn't do that, since you have to remove the pound sign before doing any calculations. I would put a lable infront of the textbox with a pound sign in it.
If you decide to go with that approach, you could so something like
![]()
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) With TextBox1 .Text = Format(Val(Replace(.Text, "$", vbNullString)), " $ #,##0.00") End With End Sub
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks