Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default NumberFormat vs. NumberFormatLocal

Is it better to set the NumberFormat for a cell or range by using the
NumberFormat property or NumberFormatLocal? Should you be able to set
the number format in VBA code in english and have Excel do the
translastion for you ? Or should you just set the appropriate number
format with NumberFormatLocal?

Thanks in advance.
Roy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default NumberFormat vs. NumberFormatLocal

NumberFormat using US English conventions should work.

Stephen Bullen has posted a chapter from his book for review on his site.
This chapter address International issues and give you more details and
recommendations:

http://www.oaltd.co.uk/ExcelProgRef/...rogRefCh22.htm
International Issues

--
Regards,
Tom Ogilvy



wrote in message
oups.com...
Is it better to set the NumberFormat for a cell or range by using the
NumberFormat property or NumberFormatLocal? Should you be able to set
the number format in VBA code in english and have Excel do the
translastion for you ? Or should you just set the appropriate number
format with NumberFormatLocal?

Thanks in advance.
Roy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default NumberFormat vs. NumberFormatLocal

Well, we had a customer who was trying to set NumberFormat on a range
of cells with an English setting running on a German version of Excel.
This was throwing an error. They were then using this "error" to go
and set it with German settings. Now relying on an error to occur is
kind of a hack. The odd thing was a) that an error occurred at all;
and b) it didn't happen consistenly;

Changing the property set to NumberFormatLocal seemed to cause the
desired behavior (as flawed as it was) to occur.

Roy

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
Excel automation through .NET Interop: NumberFormat property looks like NumberFormatLocal martin durtschi Excel Programming 4 May 13th 14 07:39 PM
NumberFormat momak Excel Programming 1 July 20th 05 03:06 PM
VBA NumberFormat Digit Excel Programming 1 January 30th 05 02:30 PM
NumberFormat vs NumberFormatLocal Martin V Excel Programming 1 September 3rd 04 12:51 AM
Copy with NumberFormatLocal included Patrick Molloy[_3_] Excel Programming 0 July 17th 03 07:46 AM


All times are GMT +1. The time now is 01:58 AM.

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

About Us

"It's about Microsoft Excel"