I use the print function to export a Cell Value to csv file. I use this macro on several PCs with different Localization Settings. The problem i am experiencing is, that on some PCs the Output is 4,11 and 4.11 on others. Is there any Format Method, that allows me always write a Number with a semicolon as decimal Seperator?
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- How do I merge consecutive numbers in a sorted lis
- Excel formula in VBA code
相关文章
- 关于C#中 float、double、decimal 的运算不精确的问题。
- Get column data by Column name and sheet name
- MYSQL: DECIMAL with accuracy of 10 digits after th
- How to convert hex string into decimal value
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- Need help generating discrete random numbers from
As far as I'm aware, there is no format method for changing the decimal separator. Instead your options are temporarily telling Excel to use a special character or using Replace().
Or
In either case you then have a problem, when reading the numbers back in, of converting them back to the correct character so they are considered numbers.
A better question might be how do programmers in places that use the comma as the decimal separator handle decimal values in CSV files?