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


Hi, our application is exporting data to a spreadsheet. Using the
Excel.Application object. We are formatting the date fields using

app.Range(strCol & strRow).EntireColumn.NumberFormatLocal = "standard"

This usually works just fine, however sometimes some of the rows gets a
different format. E.g.
12.12.2003 Right aligned
12/12/2003 left aligned
Then I made this small macro that adds a comment with the NumberFormat and
NumberFormatLocal for the cells. And all the cells had
dd.mm.ееее In Numberformatlocal
and
d/m/yyyy in NumberFormat
So some of the rows were using NumberFormatLocal to format the dates while
some others were using NumberFormat. I then tried to change the format on
some the cells that were using just numberFormat, but it still showed in
the NumberFormat.

So I was wondering how does excel decide which format to use?
And does anyone know the values NumberFormatLocal can have?
Regards Martin
 
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 Q Aaron Excel Worksheet Functions 4 December 18th 09 02:15 AM
NumberFormat danpt Excel Discussion (Misc queries) 3 May 20th 09 10:55 PM
numberformat? Jack Sons Excel Discussion (Misc queries) 3 September 4th 07 03:44 PM
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 09:17 PM.

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"