Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a column that I wish to have the date posted in. I would like to use
a DROP DOWN LIST with a calendar to let the user pick the date needed. I would like the calendar to appear for the current MONTH/YEAR when the drop down arrow is picked, with the option to move foreard or back month by month. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I don't do this much, but it seems to me if you want to use an ActiveX object
you have to do it with VBA programming. but someone here may be able to show you another way. --- "Retired Bill" wrote: I have a column that I wish to have the date posted in. I would like to use a DROP DOWN LIST with a calendar to let the user pick the date needed. I would like the calendar to appear for the current MONTH/YEAR when the drop down arrow is picked, with the option to move foreard or back month by month. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Say we are using column B.
First put a calendar control on the worksheet: Insert Object... Calendar Control (will have some number with it) Next insert the following macros in teh worksheet code area: Private Sub Calendar1_DblClick() ActiveCell.NumberFormat = "m/d/yyyy" ActiveCell = Calendar1 End Sub Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Target.Column = 2 Then Cancel = True Calendar1.Left = Target.Left + Target.Width - Calendar1.Width Calendar1.Top = Target.Top + Target.Height Calendar1.Visible = True Else Cancel = False Calendar1.Visible = False End If End Sub Double click on column B to make the tool appear Double click in the tool to pick a date Double click off column B to make the tool vanish Because it is worksheet code, it is very easy to install and use: 1. right-click the tab name near the bottom of the window 2. select View Code - this brings up a VBE window 3. paste the stuff in and close the VBE window If you save the workbook, the macro will be saved with it. To remove the macro: 1. bring up the VBE windows as above 2. clear the code out 3. close the VBE window To learn more about macros in general, see: http://www.mvps.org/dmcritchie/excel/getstarted.htm To learn more about Event Macros (worksheet code), see: http://www.mvps.org/dmcritchie/excel/event.htm and http://groups.google.com/group/micro...ab3aff113b e3 -- Gary''s Student - gsnu200840 "Retired Bill" wrote: I have a column that I wish to have the date posted in. I would like to use a DROP DOWN LIST with a calendar to let the user pick the date needed. I would like the calendar to appear for the current MONTH/YEAR when the drop down arrow is picked, with the option to move foreard or back month by month. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks, I shall give it a try. Appreciate your time----------
"Gary''s Student" wrote: Say we are using column B. First put a calendar control on the worksheet: Insert Object... Calendar Control (will have some number with it) Next insert the following macros in teh worksheet code area: Private Sub Calendar1_DblClick() ActiveCell.NumberFormat = "m/d/yyyy" ActiveCell = Calendar1 End Sub Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Target.Column = 2 Then Cancel = True Calendar1.Left = Target.Left + Target.Width - Calendar1.Width Calendar1.Top = Target.Top + Target.Height Calendar1.Visible = True Else Cancel = False Calendar1.Visible = False End If End Sub Double click on column B to make the tool appear Double click in the tool to pick a date Double click off column B to make the tool vanish Because it is worksheet code, it is very easy to install and use: 1. right-click the tab name near the bottom of the window 2. select View Code - this brings up a VBE window 3. paste the stuff in and close the VBE window If you save the workbook, the macro will be saved with it. To remove the macro: 1. bring up the VBE windows as above 2. clear the code out 3. close the VBE window To learn more about macros in general, see: http://www.mvps.org/dmcritchie/excel/getstarted.htm To learn more about Event Macros (worksheet code), see: http://www.mvps.org/dmcritchie/excel/event.htm and http://groups.google.com/group/micro...ab3aff113b e3 -- Gary''s Student - gsnu200840 "Retired Bill" wrote: I have a column that I wish to have the date posted in. I would like to use a DROP DOWN LIST with a calendar to let the user pick the date needed. I would like the calendar to appear for the current MONTH/YEAR when the drop down arrow is picked, with the option to move foreard or back month by month. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pick From Drop-Down List... | Excel Worksheet Functions | |||
Drop Down Pick List | Excel Discussion (Misc queries) | |||
how do i get a drop down pick list in a cell | Excel Worksheet Functions | |||
how do i get a drop down pick list in a cell | Excel Worksheet Functions | |||
Pick from a drop-down list | Excel Worksheet Functions |