#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default drop down date

i am trying to enter a drop down date in an excel worksheet for users to
select a date from a calander.

ex. select a cell (where the date is to be) and a calander pops up and the
user selects the date from the calander.

thank you,


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default drop down date

http://www.rondebruin.nl/calendar.htm


Gord Dibben MS Excel MVP

On Mon, 22 Sep 2008 12:20:06 -0700, kalasha
wrote:

i am trying to enter a drop down date in an excel worksheet for users to
select a date from a calander.

ex. select a cell (where the date is to be) and a calander pops up and the
user selects the date from the calander.

thank you,


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default drop down date

Kalasha

Right click on the sheeta tab and copy this code in:

Change the range to suit your requirements

Dim CurrentDTPickerCell As Range

Private Sub DTPicker1_CloseUp()
CurrentDTPickerCell.Value = DTPicker1.Value
DTPicker1.Visible = False
End Sub

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Not Intersect(Target, Range("F5:F2004")) Is Nothing Then
Cancel = True
Set CurrentDTPickerCell = Target
DTPicker1.Visible = True
DTPicker1.Top = Target.Top
DTPicker1.Left = Target.Left + Target.Width + 1
End If
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("F5:F2004")) Is Nothing Then
If DTPicker1.Visible Then DTPicker1.Visible = False
End If
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If DTPicker1.Visible Then DTPicker1.Visible = False
End Sub


In the Insert Controls Menu, choose Date/Time Picker and insert it anywhere
on your sheet.

Double click on the cell(s) or any cell within the range you have specified
in the code and click on the arrow down to bring up the callendar.

HTH
Mark.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default drop down date

great
"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
http://www.rondebruin.nl/calendar.htm


Gord Dibben MS Excel MVP

On Mon, 22 Sep 2008 12:20:06 -0700, kalasha
wrote:

i am trying to enter a drop down date in an excel worksheet for users to
select a date from a calander.

ex. select a cell (where the date is to be) and a calander pops up and
the
user selects the date from the calander.

thank you,




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
How do I create a drop down box with the date in it Dustin Excel Worksheet Functions 4 November 12th 07 07:34 PM
How to use the drop down date in Excel? gwtreece Excel Worksheet Functions 1 August 4th 06 03:44 PM
Date Drop Down Menu rbrickl Excel Discussion (Misc queries) 2 June 30th 06 02:32 PM
Drop AM and PM from date EMG03 Excel Worksheet Functions 1 July 20th 05 11:30 PM
Date format on a drop down box Steven Cheng Excel Discussion (Misc queries) 6 February 9th 05 03:13 AM


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