LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default International decimal number formats

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

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200701/1

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel question Formats and number pad raindancer Excel Discussion (Misc queries) 1 February 8th 06 02:36 AM
" / " Changing Decimal number format to Fraction on Protected Cell laudie Excel Worksheet Functions 0 November 15th 05 02:13 AM
" / " Changing Decimal number format to Fraction on Protected Cell laudie Excel Worksheet Functions 0 November 15th 05 01:12 AM
International number separator bibi Excel Worksheet Functions 0 August 3rd 05 06:49 PM
number formats default to 2 decimal points when entered so 24 bec. kiddo7us Excel Discussion (Misc queries) 1 March 30th 05 09:48 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"