Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Text Box Format
Use the Keypress event
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger) If KeyAscii = 46 Then Exit Sub If KeyAscii < 48 Or KeyAscii 57 Then KeyAscii = 0 End If End Sub -- Regards, Tom Ogilvy "scrabtree23" wrote in message ... I have a text box on a user form and I want to format it so the user has to enter numbers (with a decimal) and the result needs to be displayed in the text box as currency. I don't want it to allow text. ??? SDC |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need help with converting CUSTOM format/TEXT format to DATE format | Excel Worksheet Functions | |||
Change Date Format to Specific Text Format When Copying | Excel Discussion (Misc queries) | |||
Convert numbers from text format to number format | Excel Discussion (Misc queries) | |||
how to format excel format to text format with separator "|" in s. | New Users to Excel | |||
How do i change numbers in text format to number format? | New Users to Excel |