1
In Excel 2003, is it possible to enter dates in a cell from a drop-down calendar instead of entering them manually?
1
In Excel 2003, is it possible to enter dates in a cell from a drop-down calendar instead of entering them manually?
0
Use the following for Excel 2003.
Insert > Object, scroll down and click on "Microsoft Calendar Control".
Right click the worksheet tab and view code.
Paste the following code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Cells.Count > 1 Then Exit Sub 'Change this to your range of dates If Not Intersect(Target, Range("A1:A100")) Is Nothing Then Calendar1.Top = Target.Top + Target.Height Calendar1.Left = Target.Left + Target.Width / 2 - Calendar1.Width / 2 Calendar1.Visible = True Calendar1.Value = Now ElseIf Calendar1.Visible Then Calendar1.Visible = False End If End Sub Private Sub Calendar1_Click() ActiveCell.Value = (Calendar1.Value) ActiveCell.NumberFormat = "dd mmm yy" End Sub
Note in the code the range for the dates is set as A1:A100, maintain the syntax and change this to suit.
Close VB editor.
Exit design mode.
When you click in a1:A100 you get a calendar that defaults to today's date.
Click a date and it gets entered in the active cell.
2
There is number of ways:
adding form field with dropdown calendar can be more comfortable, but suitable for limited cell count made manually.
adding universal date/time dropdown picker can be slightly less intuitive to use, but you do not need any further special handling of date cells
Thank you miroxlav. Unfortunately, Excel 2003 neither has a Developer tab nor it supports universal picker. But the link in the comment of Yass answered my question. – Hany – 2016-03-07T06:40:17.000
1
What did your research tell you? A search for "excel 2003 drop down calendar" gives Adding a calendar drop down box to Excel 2003 as the first link. Please read How do I ask a good question?.
– DavidPostill – 2016-03-05T10:49:34.353Thank you Yass very much, your link answered my question. – Hany – 2016-03-07T06:36:23.390
1Answer added... – DavidPostill – 2016-03-07T09:09:21.380