Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I leave textbox.value blank, textbox treat the number I entered
as text. If I set textbox.value to zero, textbox treats number as number but it displays a big fat 0. How do I get textbox to treat number as number and not display zero but blank instead? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
A textbox only deal with text : With TextBox1 MsgBox TypeName(.Value) & " : " & TypeName(.Text) End With You have to coerce (CLng, CDbl, etc) the value when you use it If not want a zero, don't put a zero in the textbox. NickHK "John Smith" wrote in message ... If I leave textbox.value blank, textbox treat the number I entered as text. If I set textbox.value to zero, textbox treats number as number but it displays a big fat 0. How do I get textbox to treat number as number and not display zero but blank instead? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Verify Textbox Information is a Number and Not Text | Excel Discussion (Misc queries) | |||
Treat "Text" as a Number? | Excel Discussion (Misc queries) | |||
how to treat string value as a number | New Users to Excel | |||
How to make excel to treat values in cell as a number? | Excel Programming | |||
changing a text value to a number value in a textbox? | Excel Programming |