ValueBox? or force TextBox to read/format value
Thanks,
Unfortunately many users knowingly (or maybe even unknowingly) use the
wrong separator, because they use U.S. International keyboard setting,
so issues like the german 'u-umlaut' are easy to overcome.
Unfortunately this means the decimal seperator on the numberpad
becomes a point.
So maybe what I really need is a European International keyboard ;-)
Leo
On Mon, 12 Apr 2004 11:09:17 -0500, "Juan Pablo González"
wrote:
Part of the problem is solved by using these values:
?Application.International(xlDecimalSeparator)
.
?Application.International(xlThousandsSeparator )
,
that way, you can "know" what the user tried to enter in his "own" language.
Then, convert it to a "real" number. What I do is something like
St = InputBox("Enter the number")
St = Replace$(St, Application.International(xlThousandsSeparator), "")
'Remove the comma
St = Evaluate(Chr$(34) & St & Chr$(34) & "+0")
to let Excel handle the conversion ! instead of reinventing the wheel...
|