Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a date column with the format dd/mm/yy.
Is there away to just enter the numbers with the / being entered automatically. Thanks --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Beesht,
If Column 1 contains your dates, then try the following: It forces you to use the ddmmyy convention for data entry. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then Application.EnableEvents = False Target.Value = CDate(Format(CLng(Target.Value), "00""/""00""/""00")) Application.EnableEvents = True End If End Sub You could make it smarter by validating dates within a range (1986 to 2009) and anything else is ddmmyy format - though I wouldn't recommend it. Rob "Beesht " wrote in message ... I have a date column with the format dd/mm/yy. Is there away to just enter the numbers with the / being entered automatically. Thanks --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chip Pearson has some date (and time) entry code at:
http://www.cpearson.com/excel/DateTimeEntry.htm In fact, you may want to read about how excel treats dates and times: http://www.cpearson.com/excel/datetime.htm "Beesht <" wrote: I have a date column with the format dd/mm/yy. Is there away to just enter the numbers with the / being entered automatically. Thanks --- Message posted from http://www.ExcelForum.com/ -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofill date on date entry in a separate column | Excel Worksheet Functions | |||
Excel 2002 date entry: Cannot get away from d-m-yy entry format | Excel Discussion (Misc queries) | |||
date entry | Excel Worksheet Functions | |||
Restricting date entry relative to current date | Excel Worksheet Functions | |||
Date entry | Excel Discussion (Misc queries) |