PC Review


Reply
 
 
terilad
Guest
Posts: n/a
 
      19th Feb 2010
Hi,

Could someone help me with a code for a date picker so that when I click a
cell say E5 this will bring up the following dates either by calendar or a
sequence of dats for 1 month.

Many thanks

Mark
 
Reply With Quote
 
 
 
 
ker_01
Guest
Posts: n/a
 
      19th Feb 2010
Simple solution:

On another worksheet in the same workbook:

In cell A1 enter =today()
in cell A2 enter =A1-1
autofill down to row 30 or 31 (however many days you want)

While still on this sheet, create a named range that represents that range
of cells, say A1:A31. For example, call it MyDateList

On your main worksheet, go back to the cell where you want the date. apply
data validation, pick "list", and enter the name of your named range
(=MyDateList)

Then when you click that cell you will get drop-down list of dates, and the
dates will always show a rolling 31 days.

If you need something different (like only show current month, or also
include future dates), please specify your needs.

I didn't give explicit instructions on how to set up the named range or data
validation, as the toolbar or menu selections vary slightly from 2003 to 2007
and you didn't specify which version you are using.

"terilad" wrote:

> Hi,
>
> Could someone help me with a code for a date picker so that when I click a
> cell say E5 this will bring up the following dates either by calendar or a
> sequence of dats for 1 month.
>
> Many thanks
>
> Mark

 
Reply With Quote
 
terilad
Guest
Posts: n/a
 
      19th Feb 2010
Thats Great, thanks very much, I have used data validation and name ranges
before so got it working. Many thanks.


Mark

"ker_01" wrote:

> Simple solution:
>
> On another worksheet in the same workbook:
>
> In cell A1 enter =today()
> in cell A2 enter =A1-1
> autofill down to row 30 or 31 (however many days you want)
>
> While still on this sheet, create a named range that represents that range
> of cells, say A1:A31. For example, call it MyDateList
>
> On your main worksheet, go back to the cell where you want the date. apply
> data validation, pick "list", and enter the name of your named range
> (=MyDateList)
>
> Then when you click that cell you will get drop-down list of dates, and the
> dates will always show a rolling 31 days.
>
> If you need something different (like only show current month, or also
> include future dates), please specify your needs.
>
> I didn't give explicit instructions on how to set up the named range or data
> validation, as the toolbar or menu selections vary slightly from 2003 to 2007
> and you didn't specify which version you are using.
>
> "terilad" wrote:
>
> > Hi,
> >
> > Could someone help me with a code for a date picker so that when I click a
> > cell say E5 this will bring up the following dates either by calendar or a
> > sequence of dats for 1 month.
> >
> > Many thanks
> >
> > Mark

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting current date on date/time picker control =?Utf-8?B?RG91Z00=?= Microsoft Access VBA Modules 1 19th Jul 2005 07:07 PM
I am trying to use the Microsoft Date and Time Picker control and I am getting the following error "an error occured in a call to the windows date and time picker control" in access 2000 Ralph Malph Microsoft Access Forms 0 25th Oct 2004 07:00 PM
Date time picker setting current date at creation eyad hasan Microsoft Outlook Form Programming 2 26th Mar 2004 04:11 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook VBA Programming 1 22nd Jan 2004 02:48 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook Program Addins 0 14th Jan 2004 06:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:23 PM.