Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Custom number format

This is driving me crazy..

I have a column with data that looks like this:

2Dec5255

It is not a date but EXCEL treats it like a date,. When I enter the
value into an excel
cell it shows up as 2-Dec-55.

The code I am currently use is

Columns("B:B").Select
Selection.NumberFormat = "ddmmmyy"

I need a custom number format that I can put in to display the numbers
correectly.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Custom number format

columns("B:B").numberformat = "@" 'text



ScoobyDoo wrote:

This is driving me crazy..

I have a column with data that looks like this:

2Dec5255

It is not a date but EXCEL treats it like a date,. When I enter the
value into an excel
cell it shows up as 2-Dec-55.

The code I am currently use is

Columns("B:B").Select
Selection.NumberFormat = "ddmmmyy"

I need a custom number format that I can put in to display the numbers
correectly.

Thanks


--

Dave Peterson
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
format cell custom Number format Dan Excel Worksheet Functions 2 January 26th 10 05:29 PM
convert number to % using only custom number format challenge Brotherharry Excel Discussion (Misc queries) 7 June 2nd 09 06:29 PM
Custom number format for driver's license number excel user Excel Discussion (Misc queries) 10 July 16th 08 10:05 PM
how do I add phone number format as a permanent custom format? frustratedagain Excel Discussion (Misc queries) 3 February 4th 06 03:52 AM
Format a cell with a custom number format Armor Excel Worksheet Functions 4 January 29th 06 11:25 PM


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