ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Transferring number formats across international locales (https://www.excelbanter.com/excel-discussion-misc-queries/125513-transferring-number-formats-across-international-locales.html)

John Cleese via OfficeKB.com

Transferring number formats across international locales
 
I need to be able to store decimal numbers in excel cells that are as
recognisable in all international number formats, as they are in my own
international locale format.

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 the lines:

Range("$A$1"),numberFormat = "0.0000" OR Range("$A$1").Value = Format(number,
"0.0000")

--
Message posted via http://www.officekb.com



All times are GMT +1. The time now is 02:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com