I would like to build a piece of code which can convert numbers in my workbook from English to French number formatting.
For example,
- English formatting would be
$1,000,000.99
, and - French would be
1 000 000,99 $
I can not seem to find any default French codes built into excel and using a ,
instead of a .
for the decimal does not show numbers less than $1.
Any assistance or advice is appreciated!
To make the currency symbol appear to the right of your numbers, use the
NumberFormat
property of aRange
object and set it to:#,##0.00 [$$-C0C]
#,##0.00 [$€-C0C]
The behavior of commas and periods for decimals and digit grouping is usually controlled by your Region and Language Settings in Windows.
You can change this setting application-wide (i.e. it will affect any workbook opened on your machine) by changing the values of
Application.DecimalSeparator
andApplication.ThousandsSeparator
in VBA. Alternatively, you can achieve the same effect by going to File > Options > Advanced and uncheck "Use system separators"