LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default NumberFormat not getting changing onFly changing the regional sett

In Excel help file, this note is at the bottom of the instructions for
changing the Country/Regional settings:

When you change the country/region, settings, such as the format for
displaying currency and date, may also change. Check all the tabs in the
Regional and Language Options or Regional Options dialog box to make sure
they are correct.

Two items caught my eye. "may also change" and "Check all the tabs in the
.... Options".
This tells me that there is no absolute conversion guanrantee when the
changes are made. The safe thing would be to have a macro that checks
everything and fixes it if needed.


"Dwipayan Das" wrote in message
...
Hi Excel experts ,

Sorry for posting a new question over here. I am having a hard time with
one
of a Excel related issue.

Requirement:

1) User pulls some data ( includes numeric,Date fields ) to excel when
he/she is with German OS settings.

Date show in following format: dd.mm.yyyy ( eg: 23.09.2010)

2) Now on the fly he/she changes the OS regional settings to En-US

3) Here our code again reformats those columns with current regional
settings and polish the data according to its regional settings.

4) In our case all numeric values are getiing changed correctly to the
EN-US
format but the Date field remains the same in German culture.

I debug the code and i found the NumberFormat remains the same as per the
German culture (dd.mm.yyyy).Its not getting change to mm/dd/yyyy

Is this the expected behaviour in Excel object model ,where the
numberformat
for a cell/column doesn't get change to latest culture .

Waiting for your reply.........:)

Thanks,

Dwipayan Das












 
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
Changing background colour when changing data in a cell Paoul Excel Discussion (Misc queries) 7 December 26th 08 07:25 AM
Autofill 1 column with changing data and changing range cdclayton Excel Programming 0 August 5th 08 04:37 PM
ControlSource Property Throwing Errors After Changing Regional Settings TCook Excel Programming 2 January 18th 07 07:01 PM
Changing text to numberformat via textbox on a form Stef Excel Programming 3 June 22nd 04 02:33 PM
Changing Regional Settings from VBA Michael Rekas[_2_] Excel Programming 3 May 18th 04 09:05 AM


All times are GMT +1. The time now is 07:03 PM.

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"