Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Im using XL 2000
I have a userform which is taking a numerical value from a user in a textbox named 'Value' and placing it in Worksheets("Names").Cells(newrow, "E") = Value The value is placed as 'text' and i have to go in and manually convert to a number. I would like to automate this programtaically. Any ideas? than you paul. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cast it.
Worksheets("Names").Cells(newrow, "E").Value = CDbl(Textbox1.Text) or Worksheets("Names").Cells(newrow, "E").Value = CLng(Textbox1.Text) -- HTH Bob Phillips "Paulc" wrote in message ... Im using XL 2000 I have a userform which is taking a numerical value from a user in a textbox named 'Value' and placing it in Worksheets("Names").Cells(newrow, "E") = Value The value is placed as 'text' and i have to go in and manually convert to a number. I would like to automate this programtaically. Any ideas? than you paul. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Worksheets("Names").Cells(newrow, "E").NumberFormat = "0.00"
Put the format you want between the quotes. Mike F "Paulc" wrote in message ... Im using XL 2000 I have a userform which is taking a numerical value from a user in a textbox named 'Value' and placing it in Worksheets("Names").Cells(newrow, "E") = Value The value is placed as 'text' and i have to go in and manually convert to a number. I would like to automate this programtaically. Any ideas? than you paul. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert number to % using only custom number format challenge | Excel Discussion (Misc queries) | |||
how do I convert a number to number of years, months and days | Excel Worksheet Functions | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
not able to convert text, or graphic number to regular number in e | Excel Worksheet Functions | |||
convert decimal number to time : convert 1,59 (minutes, dec) to m | Excel Discussion (Misc queries) |