Hi all [flush]
I work on VBA Excel. From a text file, I copy prices such 1000,50 $
The problem is that : when I copy this price on an Excel sheet (as a string), I want that the comma is recognized like the decimal separator. Also, it will work only if the Excel sheet configuration defines effectively the comma as the decimal separator.
If the dot is the decimal separator for the sheet, it will not work.
And of course, I would like my program works on the 2 types of configuration : dot and comma (so replace . by , or , by . is excluded).
How can I solve this problem ???
Is there a way to set the sheet configuration from VBA ?
Thanks a lot in advance
Rody![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)
I work on VBA Excel. From a text file, I copy prices such 1000,50 $
The problem is that : when I copy this price on an Excel sheet (as a string), I want that the comma is recognized like the decimal separator. Also, it will work only if the Excel sheet configuration defines effectively the comma as the decimal separator.
If the dot is the decimal separator for the sheet, it will not work.
And of course, I would like my program works on the 2 types of configuration : dot and comma (so replace . by , or , by . is excluded).
How can I solve this problem ???
Is there a way to set the sheet configuration from VBA ?
Thanks a lot in advance
Rody
![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)