dbTalk Databases Forums  

Changing the NumberFormat property

comp.databases.ms-access comp.databases.ms-access


Discuss Changing the NumberFormat property in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JohnP
 
Posts: n/a

Default Changing the NumberFormat property - 03-25-2011 , 01:56 AM






From Access 03 I can change the NumberFormat Property of an Excel 03
cell. For cell say F10 if original Date format was "dd/mm/yyyy"
I can change it to "m/d/yyyy"

objResultsSheet.Range(F10).NumberFormat = "m/d/yyyy"

Do you know what are the repercussions of this change? The cell value
was originally 14/3/2011. It still is and this logical since my
Regional Settings have not changed.

In other words what is the use of the NumberFormat property?

Thanks,
John

Reply With Quote
  #2  
Old   
Tom Clavel
 
Posts: n/a

Default Re: Changing the NumberFormat property - 03-25-2011 , 09:56 AM






There are no repercussions except that you can look at the number in
the format that you like. It has the same effect as changing the
background color or changing the font.


On Mar 25, 3:56*am, JohnP <j... (AT) kosmosbusiness (DOT) com> wrote:


Quote:
From Access 03 I can change the NumberFormat Property of an Excel 03
cell. For cell say F10 if original Date format was "dd/mm/yyyy"
*I can change it to "m/d/yyyy"

objResultsSheet.Range(F10).NumberFormat = "m/d/yyyy"

Do you know what are the repercussions of this change? The cell value
was originally 14/3/2011. It still is and this logical since my
Regional Settings have not changed.

In other words what is the use of the NumberFormat property?

Thanks,
John

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.