Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
NuB NuB is offline
external usenet poster
 
Posts: 9
Default change column format

how can i change the format of the column from general to number?

instead of seeing
2.00504E +11
i want to see
200504140012


How can i make this happen in code? the file is being populated from another
excel file.





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default change column format

Columns("A:A").NumberFormat = "0"

or

Columns("A:A").NumberFormat = "000000000000"
' this one will alway show 12 digits '
--
rand451
"NuB" <CSharpCoder wrote in message
...
how can i change the format of the column from general to number?

instead of seeing
2.00504E +11
i want to see
200504140012


How can i make this happen in code? the file is being populated from
another excel file.







  #3   Report Post  
Posted to microsoft.public.excel.programming
NuB NuB is offline
external usenet poster
 
Posts: 9
Default change column format

thanks
"STEVE BELL" wrote in message
news:ipHle.9974$GN3.3896@trnddc04...
Columns("A:A").NumberFormat = "0"

or

Columns("A:A").NumberFormat = "000000000000"
' this one will alway show 12 digits '
--
rand451
"NuB" <CSharpCoder wrote in message
...
how can i change the format of the column from general to number?

instead of seeing
2.00504E +11
i want to see
200504140012


How can i make this happen in code? the file is being populated from
another excel file.









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
How do i change column header from R[1] C format to A1 format? lovnlife Excel Discussion (Misc queries) 4 April 5th 10 07:29 PM
How do I change the row/column format in a macro to beyond letters? LunaMoon Excel Discussion (Misc queries) 3 August 4th 08 03:48 AM
WHY DOES DATE FORMAT CHANGE IN COLUMN Kerry Johnson Excel Discussion (Misc queries) 1 May 30th 08 01:52 PM
Can I change a column of dates from USA to UK format? Michelle, Mencap Excel Discussion (Misc queries) 3 March 2nd 05 04:02 PM
Both columns change when I format only one column (A) Wayne New Users to Excel 1 January 31st 05 08:09 PM


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