Date Picker on Excel UserForm (Solved)

User avatar
Oliver
2StarLounger
Posts: 128
Joined: 08 Mar 2010, 13:53
Location: Missouri

Date Picker on Excel UserForm (Solved)

Post by Oliver »

Hello all,
How can I add a date picker on excel UserForms? I thought this post was gonna help but didn't.
Thank you in advance!!


How I did it: Right-clicked on the tool box and ticked the "Microsoft Outlook Date Control" from the Additional Controls dialog (See Picture).
Date_Picker.PNG
You do not have the required permissions to view the files attached to this post.
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison

User avatar
HansV
Administrator
Posts: 78446
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Date Picker on Excel UserForm (Solved)

Post by HansV »

Alternatively, you could use the calendar built from "native" userform controls found at Calendar Control for All Office versions - including Office 2016 64 bit (With Advanced Features).
Best wishes,
Hans

User avatar
Oliver
2StarLounger
Posts: 128
Joined: 08 Mar 2010, 13:53
Location: Missouri

Re: Date Picker on Excel UserForm (Solved)

Post by Oliver »

Hello Hans,
I am trying to use your suggestion from 2 years ago but I'm very confused on how I can add it to my userform. I tried pulling my old file but I couldn't find it.
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison

User avatar
HansV
Administrator
Posts: 78446
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Date Picker on Excel UserForm (Solved)

Post by HansV »

The article explains how to use it:
- Import the cCalendar class module
- Add a Frame control to your userform
- Use code in the UserForm_Initialize event procedure to add the calendar to the frame
Best wishes,
Hans

User avatar
Oliver
2StarLounger
Posts: 128
Joined: 08 Mar 2010, 13:53
Location: Missouri

Re: Date Picker on Excel UserForm (Solved)

Post by Oliver »

I had to add “PtrSafe” to a few lines but is working great. Thank you Hans!
Regards,
Oliver
“Just because something doesn't do what you planned it to do doesn't mean it's useless.” -Thomas Edison