Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calendar or date picker on a user form.... 2

Status
Not open for further replies.

Yogi39

Technical User
Jun 20, 2001
273
CA
How would I get a calendar so a user can pick a date from a user form and pass date to a variable ?
 
When you are in the VBA editor and working with a form in design mode, right-click on the toolbox in a blank area near the tool icons. (Not on the tab, not on the title bar and not on the background. Click in the palette area.) Click "Additional Controls..." and you should be able to tick a calendar control. (For Excel 97, it's called Calendar Control 8.0) Click OK and use it like any other object on the palette.

It's big and clunky, but it works.


 
in the on clik event of the calendar use this command
rdate is the variable
rdate = caldaily.value

should do it

Thanks Rob.[yoda]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top