Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Date formats

I need to know if there is a way to have a spreadsheet format dates
automatically without affecting other cells. For example, in cell a1 or any
other cell, i want to enter "january 09" and have the date stay exactly as i
typed it instead of what Excel does "9-jan". I want it to do this with every
instance of a date in the spreadsheet. I still want to be able to type in
cell a2 a numerical value. Outside of formating a column for a date is there
any way i can get Excel to do this? Please help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Date formats

There's no way for a macro to know how you typed it in unless you cell
the number format to Text.

Otherwise, XL's parser automatically interprets the entry as a date and
converts it to a long integer before any event fires that could trigger
a macro.



In article ,
JOSEPH WEBER wrote:

I need to know if there is a way to have a spreadsheet format dates
automatically without affecting other cells. For example, in cell a1 or any
other cell, i want to enter "january 09" and have the date stay exactly as i
typed it instead of what Excel does "9-jan". I want it to do this with every
instance of a date in the spreadsheet. I still want to be able to type in
cell a2 a numerical value. Outside of formating a column for a date is there
any way i can get Excel to do this? Please help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Date formats

The only way I thought of doing it was to put the dates in a different column
and just format that column the way they want the date to display. This
would probably be the best way right?

"JE McGimpsey" wrote:

There's no way for a macro to know how you typed it in unless you cell
the number format to Text.

Otherwise, XL's parser automatically interprets the entry as a date and
converts it to a long integer before any event fires that could trigger
a macro.



In article ,
JOSEPH WEBER wrote:

I need to know if there is a way to have a spreadsheet format dates
automatically without affecting other cells. For example, in cell a1 or any
other cell, i want to enter "january 09" and have the date stay exactly as i
typed it instead of what Excel does "9-jan". I want it to do this with every
instance of a date in the spreadsheet. I still want to be able to type in
cell a2 a numerical value. Outside of formating a column for a date is there
any way i can get Excel to do this? Please help.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Date formats

"Best" is a word I don't throw around much with XL, since user
implementations vary so much. But if it works, that seems logicial.

In article ,
JOSEPH WEBER wrote:

The only way I thought of doing it was to put the dates in a different column
and just format that column the way they want the date to display. This
would probably be the best way right?

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
Different date formats David Biddulph[_2_] Excel Discussion (Misc queries) 0 December 8th 09 10:49 AM
Cell Date and Listbox Date formats Corey[_3_] Excel Programming 5 December 12th 08 11:52 AM
Date Formats david d Excel Discussion (Misc queries) 2 September 14th 08 12:29 PM
Dealing with date formats on expiration date bliten_bsas Excel Programming 1 October 4th 07 08:47 PM
Date Formats Murray Taylor Excel Programming 4 December 2nd 03 07:28 PM


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