I have some XML files that contain decimal numbers stored with ‘.’ as decimal separator. I created Excel workbook that is used for editing data in that XML. MSXML is used to read the data from XML that are then displayed in worksheets. Once data is being stored I modify DOM structure with new values read from tables and I save XML.
The problem is that when I convert decimal numbers back to strings, to save them as values in XML, decimal separator that is specified by user in Windows regional settings is used.
I need a way to force storing decimal numbers with ‘.’ as decimal separator in all cases. Is this possible?
How do you modify the DOM structure with the new values–programmatically? How?
Is it possible for you to use
Format(Cell.value, "#0.0")? Also tryFormat(CDbl(Cell.Value), "#0.0"). If that doesn’t work, can you just throw in aReplace(Value, ",", ".")? This should be okay if you’re not using thousands separators.