Userform format question

robfo0

Active Member
Joined
Feb 19, 2002
Messages
281
Hi, me again :)

another quick question im having trouble finding the answer to. Can i format the values of a userform? I know i can format them when i transfer them to my worksheet, but i would like for example:

If someone inputs 5.00 into a textbox on the userform, the form automatically changes it to $5.00.

also, does anyone know any helpful websites with some userform information? I'd like to read up more. Maybe then i wouldn't have so many questions :)

Thanks again
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Yes, you can.

For example:

Code:
Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
TextBox1 = Format(TextBox1, "$#,##0.00")
End Sub
 
Upvote 0
Self help includes books, I hope. Books are good. I've read a couple.

Learning here is good, but books are better. You'll get better structure using books. This message board is great for getting elusive answers, but books are good.

There are books everywhere.

I'm sorry, it's Holy Thursday and I am completely exhausted. TFI a long weekend.

Also, Juan's been adding onto people's posts all day. It's time for a taste of his own medicine. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top