Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default lock moth for a date column

How can this be done?
I would like to force dates entered to be of a certain month... E.g. in
one sheet only dates from february can be entered.

Regard,
Ladyhawke

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default lock moth for a date column


On the cells you wish this to apply to (so select them) then choos
data, validation, then allow dates and choose the dates to allow

Regards

Da

--
Da
-----------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...fo&userid=2710
View this thread: http://www.excelforum.com/showthread.php?threadid=57252

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default lock moth for a date column

That works ok except it restricts year values too can I some how (VBA
if needed) replace the dates entered withe the entered date except with
the month corrected to the value I specify?

regards,
Ladyhawke

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default lock moth for a date column


ladyhawke,

You can still use the Data = Validation, but choose List, and type
"Month" in the option box. This will then be the only allowed value.

This will only work if each entry needs to be the same, if you are
trying to allow varieties within a month, then you may need to
investigate VBA solutions. It is unclear the type of value you want in
your column. Is it dd/mm/yy, or dd/mm or just mmmm?

Steve

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default lock moth for a date column


I re-read your post:

If you list your dates using the DATA - VALIDATION - LIST you can
add dates

"01 Feb","02 Feb","03 Feb", etc

Steve



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default lock moth for a date column

This sounds like a useful solution, and yes I would like the date (not
month) to change, even the year or just exclude year from the date...

Regards,
Ladyhawke

SIR Knight skrev:

I re-read your post:

If you list your dates using the DATA - VALIDATION - LIST you can
add dates

"01 Feb","02 Feb","03 Feb", etc

Steve


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
Rolling 12 moth formula Doug Excel Discussion (Misc queries) 11 October 4th 08 01:13 AM
Lock in date WLMPilot Excel Discussion (Misc queries) 1 October 30th 06 01:03 PM
Lock Column Shobhit Bhatnagar Excel Discussion (Misc queries) 6 May 14th 05 03:53 PM
Lock Column Don Guillett[_4_] Excel Programming 0 May 13th 05 01:19 PM
a moth before John[_40_] Excel Programming 3 July 30th 03 03:06 PM


All times are GMT +1. The time now is 07:26 AM.

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"