Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Date Entry Issue

I'm sure this isn't the first time this problem has cropped up so I'm asking
for assistance.

I have a worksheet that requires the user to enter dates into several cells
in the workbook. The dates are displayed as MMM-YY. If the user enters
9/01, they get 9/1/2006 instead of 9/2001. Is there any way to ensure that
they enter the dates correctly. I'd like to add it to the worksheet change
event if necessary.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Date Entry Issue

If you want the format of "9/2001", I would think you could just format the
cell as:

m/yyyy


"Barb Reinhardt" wrote in message
...
I'm sure this isn't the first time this problem has cropped up so I'm
asking
for assistance.

I have a worksheet that requires the user to enter dates into several
cells
in the workbook. The dates are displayed as MMM-YY. If the user enters
9/01, they get 9/1/2006 instead of 9/2001. Is there any way to ensure
that
they enter the dates correctly. I'd like to add it to the worksheet
change
event if necessary.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Date Entry Issue

That doesn't solve the problem if the user enters the date as 9/01. It
assumes that what's entered is the month and DAY, not the year. I need to
ensure that they enter the year and am not sure how to address this, hence my
post.

"PCLIVE" wrote:

If you want the format of "9/2001", I would think you could just format the
cell as:

m/yyyy


"Barb Reinhardt" wrote in message
...
I'm sure this isn't the first time this problem has cropped up so I'm
asking
for assistance.

I have a worksheet that requires the user to enter dates into several
cells
in the workbook. The dates are displayed as MMM-YY. If the user enters
9/01, they get 9/1/2006 instead of 9/2001. Is there any way to ensure
that
they enter the dates correctly. I'd like to add it to the worksheet
change
event if necessary.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Date Entry Issue

I think the safest way is to enter a real date. One that includes day, month,
year.

But if I entered: 9/2001
excel saw it as September 1, 2001.



Barb Reinhardt wrote:

I'm sure this isn't the first time this problem has cropped up so I'm asking
for assistance.

I have a worksheet that requires the user to enter dates into several cells
in the workbook. The dates are displayed as MMM-YY. If the user enters
9/01, they get 9/1/2006 instead of 9/2001. Is there any way to ensure that
they enter the dates correctly. I'd like to add it to the worksheet change
event if necessary.

Thanks


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Date Entry Issue

Sorry about that. I tested by entering 9/06 and it returned "9/2006". It,
as you know, didn't work when typing "9/01".

What is the format in which the user is suppose to enter the date? Or what
are all the different formats in which someone could or is allowed to enter
the day. Once that is known, then appropriate steps may be taken to ensure
the final result is as you wish.



"Barb Reinhardt" wrote in message
...
That doesn't solve the problem if the user enters the date as 9/01. It
assumes that what's entered is the month and DAY, not the year. I need
to
ensure that they enter the year and am not sure how to address this, hence
my
post.

"PCLIVE" wrote:

If you want the format of "9/2001", I would think you could just format
the
cell as:

m/yyyy


"Barb Reinhardt" wrote in
message
...
I'm sure this isn't the first time this problem has cropped up so I'm
asking
for assistance.

I have a worksheet that requires the user to enter dates into several
cells
in the workbook. The dates are displayed as MMM-YY. If the user
enters
9/01, they get 9/1/2006 instead of 9/2001. Is there any way to ensure
that
they enter the dates correctly. I'd like to add it to the worksheet
change
event if necessary.

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Date Entry Issue

While I agree with you in theory, in practice, the folks who might use this
form have been given that instruction and aren't doing it. I want to build
in a more fool proof method.

"Dave Peterson" wrote:

I think the safest way is to enter a real date. One that includes day, month,
year.

But if I entered: 9/2001
excel saw it as September 1, 2001.



Barb Reinhardt wrote:

I'm sure this isn't the first time this problem has cropped up so I'm asking
for assistance.

I have a worksheet that requires the user to enter dates into several cells
in the workbook. The dates are displayed as MMM-YY. If the user enters
9/01, they get 9/1/2006 instead of 9/2001. Is there any way to ensure that
they enter the dates correctly. I'd like to add it to the worksheet change
event if necessary.

Thanks


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Date Entry Issue

I guess you could format the cell as text and keep the entry as text--not a real
date.

Or you could format the cell as text, then have an event macro that changes the
entry into the date you really want. But this could be a problem if the user
had to change an existing date.

But I think that training the user would be easier.



Barb Reinhardt wrote:

While I agree with you in theory, in practice, the folks who might use this
form have been given that instruction and aren't doing it. I want to build
in a more fool proof method.

"Dave Peterson" wrote:

I think the safest way is to enter a real date. One that includes day, month,
year.

But if I entered: 9/2001
excel saw it as September 1, 2001.



Barb Reinhardt wrote:

I'm sure this isn't the first time this problem has cropped up so I'm asking
for assistance.

I have a worksheet that requires the user to enter dates into several cells
in the workbook. The dates are displayed as MMM-YY. If the user enters
9/01, they get 9/1/2006 instead of 9/2001. Is there any way to ensure that
they enter the dates correctly. I'd like to add it to the worksheet change
event if necessary.

Thanks


--

Dave Peterson


--

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
Autofill date on date entry in a separate column lemonshark Excel Worksheet Functions 2 February 18th 10 05:11 PM
Date issue willemeulen[_24_] Excel Worksheet Functions 1 May 23rd 09 01:46 AM
Excel 2002 date entry: Cannot get away from d-m-yy entry format Steve Eklund Excel Discussion (Misc queries) 3 May 11th 09 04:57 PM
Restricting date entry relative to current date bwalshjr Excel Worksheet Functions 1 April 10th 07 12:49 PM
inexperienced header entry automation resizing/scaling issue(s) D Franseen Excel Programming 0 July 9th 03 06:08 AM


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