J
John Cleese via OfficeKB.com
You will be aware that some international number formats use ',' (commas) to
denote decimal places, whilst others use '.' (points). I have tried to write
a macro that will write a decimal number into a cell, and have tried to
define the number format by making use of lines:
Range("$A$1"),numberFormat = "0.0000"
OR
Range("$A$1").Value = Format(number,"0.0000")
Neither of these lines work.
I need to find a VBA command that will define the position of the decimal
place, regardless of whether the number format used by the user uses a '.'
(point) or a ',' (comma) to define the position of the decimal place.
Does anyone know how I can achieve this?
Regards
J
denote decimal places, whilst others use '.' (points). I have tried to write
a macro that will write a decimal number into a cell, and have tried to
define the number format by making use of lines:
Range("$A$1"),numberFormat = "0.0000"
OR
Range("$A$1").Value = Format(number,"0.0000")
Neither of these lines work.
I need to find a VBA command that will define the position of the decimal
place, regardless of whether the number format used by the user uses a '.'
(point) or a ',' (comma) to define the position of the decimal place.
Does anyone know how I can achieve this?
Regards
J