ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   TextBox in UserForm issue (https://www.excelbanter.com/excel-programming/374800-textbox-userform-issue.html)

Justin[_14_]

TextBox in UserForm issue
 
I discovered a new bug in the project I'm working on...

I have my entire project working perfectly, except that it is used in
Europe and South America as well. These countries use Windows XP but
they go into Control Panel -- Region and Language Options and they set
their Windows Region to (example) German. Then they open up my project,
and the only difference is that the decimal is a comma instead of a
period. This apparently throws off my Excel project if I save it in
German and open it up after switching back to English (United States)
settings.

The problem is this:

I have my TextBoxes set to display TextBox.Text as 2 decimal places
(0.00). This works fine in English, and stores it as a number. It
unfortunately doesn't recognize it as a number when I go from German to
English though - When I open it in English, the 0,00 remains, and it is
recognized as Text, not Numeric.

Is there a way to force the spreadsheet or .Text value to recognize it
as a number when it's storing the entry in the Textbox?



All times are GMT +1. The time now is 10:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com