Number stored as text

  • Thread starter Thread starter Justin
  • Start date Start date
J

Justin

Hello,

I am entering Numeric data into a TextBox, and sometimes I have to
enter the data in European formatting (instead of a period (.) they use
a comma (,) as the decimal placeholder).

So when I change my Windows Region to (example) German, and I enter
10,02, it enters the spreadsheet as Text.

How do I get it to enter the speadsheet as a Number? The Windows
Region allows the spreadsheet to recognize the data as a number in
10,02 , it just doesn't do that automatically...

Suggestions!?
 
See what happens if you convert the textbox value to a Double
before placing it on the sheet...
Range("A1").Value = CDbl( ? .Textbox1.Value)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Justin" <[email protected]>
wrote in message
Hello,
I am entering Numeric data into a TextBox, and sometimes I have to
enter the data in European formatting (instead of a period (.) they use
a comma (,) as the decimal placeholder).

So when I change my Windows Region to (example) German, and I enter
10,02, it enters the spreadsheet as Text.

How do I get it to enter the speadsheet as a Number? The Windows
Region allows the spreadsheet to recognize the data as a number in
10,02 , it just doesn't do that automatically...
Suggestions!?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top