Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Need to have a dot used as decimal symbol, regardless of locale

Hello,

I would like to print to a disk file decimal numbers stored in numerical
cells, by using the dot as decimal symbol.
As per my tests, Format(8.26,"0.00") will print either 8.26 or 8,26
depending on the locale. I need 8.26 to be printed regardless of the locale.
Any suggestion?

Thanks,
Stefano Gatto
Have no fear of perfection - you''ll never reach it (Salvador Dali)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Need to have a dot used as decimal symbol, regardless of locale

The following expression will give you the output that you asked for, as
text I think (I never have had to deal with international regional issues in
my programming)... it assumes the value is assigned to the Number
variable...

Replace(Format(Number, "0.00"), Format$(0, "."), ".")

--
Rick (MVP - Excel)


"Stefano Gatto" wrote in message
...
Hello,

I would like to print to a disk file decimal numbers stored in numerical
cells, by using the dot as decimal symbol.
As per my tests, Format(8.26,"0.00") will print either 8.26 or 8,26
depending on the locale. I need 8.26 to be printed regardless of the
locale.
Any suggestion?

Thanks,
Stefano Gatto
Have no fear of perfection - you''ll never reach it (Salvador Dali)


Reply
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
Decimal symbol not converting tedmi Excel Discussion (Misc queries) 3 November 10th 08 08:08 PM
Decimal Symbol dawson Excel Programming 6 June 25th 07 06:30 PM
Decimal Symbol - point needed [email protected] Excel Discussion (Misc queries) 1 October 3rd 06 05:27 PM
Decimal Symbol [email protected] Excel Programming 2 December 29th 03 08:21 PM
Regional Options and Decimal symbol from VBA Henrik Wikström Excel Programming 1 August 2nd 03 04:01 AM


All times are GMT +1. The time now is 02:08 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"