Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Input Box Question
I am using an input box to enter a number into a cell, but when I try to
enter a half number (for example .5), the cell rounds the number up to a whole number. How do I format the cell to get the .5 to enter into the cell and not have it round up to 1? I have tried formatting the cell as text but still no luck. Any suggestions? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Input Box Question
Bumper
Can you give a little more detail what the inputbox is, are you displaying this through code and is it Excel's inputbox (method) or VBA's Inputbox function? Just need a little more detail -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "bumper338" wrote in message ... I am using an input box to enter a number into a cell, but when I try to enter a half number (for example .5), the cell rounds the number up to a whole number. How do I format the cell to get the .5 to enter into the cell and not have it round up to 1? I have tried formatting the cell as text but still no luck. Any suggestions? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Input Box Question
Sub input_test()
strInput = InputBox("Number Please?", "Wee!") Range("A1") = strInput End Sub "bumper338" wrote: I am using an input box to enter a number into a cell, but when I try to enter a half number (for example .5), the cell rounds the number up to a whole number. How do I format the cell to get the .5 to enter into the cell and not have it round up to 1? I have tried formatting the cell as text but still no luck. Any suggestions? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Input Box Question
I forgot to mention, works fine as is when entering .5, but the cell A1 was
set to General formatting. HTH "Wood Grafing" wrote: Sub input_test() strInput = InputBox("Number Please?", "Wee!") Range("A1") = strInput End Sub "bumper338" wrote: I am using an input box to enter a number into a cell, but when I try to enter a half number (for example .5), the cell rounds the number up to a whole number. How do I format the cell to get the .5 to enter into the cell and not have it round up to 1? I have tried formatting the cell as text but still no luck. Any suggestions? |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Input Box Question
That worked, thanks.
"Wood Grafing" wrote: I forgot to mention, works fine as is when entering .5, but the cell A1 was set to General formatting. HTH "Wood Grafing" wrote: Sub input_test() strInput = InputBox("Number Please?", "Wee!") Range("A1") = strInput End Sub "bumper338" wrote: I am using an input box to enter a number into a cell, but when I try to enter a half number (for example .5), the cell rounds the number up to a whole number. How do I format the cell to get the .5 to enter into the cell and not have it round up to 1? I have tried formatting the cell as text but still no luck. Any suggestions? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Input Box Question | Excel Discussion (Misc queries) | |||
Have user input converted to uppercase in same cell as input? | New Users to Excel | |||
How do I add input data in the input ranges in drop down boxes. | Excel Discussion (Misc queries) | |||
user input question | Excel Discussion (Misc queries) | |||
=SUMIF(Input!H2:H718,AZ19,Input!E2:E685)AND(IF | Excel Worksheet Functions |