PC Review


Reply
Thread Tools Rate Thread

Add date picker calendar to a user form

 
 
pilgrimm@agr.gc.ca
Guest
Posts: n/a
 
      18th Feb 2008
I just came across an option in Excel to use a calendar to pick a date
for a cell. What I am now trying to do is to have a calendar come up
for 2 fields in a form. This way, to incert a date, you can choose it
from a calendar.

But, I am unsure how to add this to a User Form. On my user form I
have Name, id, and then the first field is called deduction date and
second date field is coverage date. Instead of typing in the date,
would like to have the date input from a pick list calendar.

Any help much appreciated.

Mel
 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      19th Feb 2008
There is a calendar control.ocx available to do this. In the VB editor open
userform and right click in the ToolBox (controls area), select additional
controls and look for the "Calender control Vxx", version will depend on
your system. Check the box and it will be added to the ToolBox for use of
your userform

There are various properties you can set for this after you have added a
calendar control to your userform, the value of the calendar can be copied
to another control or worksheet.

Note: I believe in older versions of Excel the calendar control had to be
downloaded as it was not supplied as standard?


--

Regards,
Nigel
(E-Mail Removed)



<(E-Mail Removed)> wrote in message
news:4ebd898e-fbda-4111-b6b8-(E-Mail Removed)...
>I just came across an option in Excel to use a calendar to pick a date
> for a cell. What I am now trying to do is to have a calendar come up
> for 2 fields in a form. This way, to incert a date, you can choose it
> from a calendar.
>
> But, I am unsure how to add this to a User Form. On my user form I
> have Name, id, and then the first field is called deduction date and
> second date field is coverage date. Instead of typing in the date,
> would like to have the date input from a pick list calendar.
>
> Any help much appreciated.
>
> Mel


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      19th Feb 2008
Nigel

Info only.

The calendar.ocx was included with editions of Office that included MS Access.

Otherwise it had to be downloaded.


Gord Dibben MS Excel MVP

On Tue, 19 Feb 2008 11:12:59 -0000, "Nigel" <nigel-(E-Mail Removed)> wrote:

>There is a calendar control.ocx available to do this. In the VB editor open
>userform and right click in the ToolBox (controls area), select additional
>controls and look for the "Calender control Vxx", version will depend on
>your system. Check the box and it will be added to the ToolBox for use of
>your userform
>
>There are various properties you can set for this after you have added a
>calendar control to your userform, the value of the calendar can be copied
>to another control or worksheet.
>
>Note: I believe in older versions of Excel the calendar control had to be
>downloaded as it was not supplied as standard?


 
Reply With Quote
 
Nigel
Guest
Posts: n/a
 
      20th Feb 2008
Thanks Gordon, I knew there was a reason why some installs had it, now I
know!

Cheers

--

Regards,
Nigel
(E-Mail Removed)



"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:(E-Mail Removed)...
> Nigel
>
> Info only.
>
> The calendar.ocx was included with editions of Office that included MS
> Access.
>
> Otherwise it had to be downloaded.
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 19 Feb 2008 11:12:59 -0000, "Nigel" <nigel-(E-Mail Removed)>
> wrote:
>
>>There is a calendar control.ocx available to do this. In the VB editor
>>open
>>userform and right click in the ToolBox (controls area), select additional
>>controls and look for the "Calender control Vxx", version will depend on
>>your system. Check the box and it will be added to the ToolBox for use of
>>your userform
>>
>>There are various properties you can set for this after you have added a
>>calendar control to your userform, the value of the calendar can be copied
>>to another control or worksheet.
>>
>>Note: I believe in older versions of Excel the calendar control had to be
>>downloaded as it was not supplied as standard?

>


 
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
Microsoft Date and Time Picker control for User Form Luke Microsoft Excel Programming 2 29th Sep 2009 05:36 PM
Can I add a Calendar/ date picker graphic to an excel doc? =?Utf-8?B?Ql9NYW41NzA2OA==?= Microsoft Excel Programming 2 6th Nov 2006 04:59 PM
How do I show the calendar date picker in the calendar? =?Utf-8?B?cWluZm9fZXNy?= Microsoft Outlook Calendar 1 4th Aug 2005 04:25 AM
mscmctl2.ocx ... calendar and date picker sometimes not available =?Utf-8?B?dGhpc0lzTm90TWVAaG90bWFpbC5jb20ubm9zcGFt Microsoft Excel Programming 1 11th Jul 2005 12:14 PM
date picker calendar =?Utf-8?B?cGxhdXRhcmU=?= Microsoft Word Document Management 1 16th Mar 2005 11:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:34 PM.