I don’t know why but the string in vba is “12.00” and when I conver to a double with
myDouble= CDbl(stringDouble)
or
myDouble = stringDouble
I cannot do anything.. any help? (I cannot change the regional settings to US on all pcs..)
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you already noted in your comments, this is a regional setting – as your system is using
,as the decimal separator, the string gets converted to1200. The solution in this case is to convert it withVal: