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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-Up Calendar default date 1

Status
Not open for further replies.

vestax22

Programmer
Jun 18, 2003
139
CA
Hi, I'm using Excel 2000. I have a userform which contains a Pop Up Calendar. I want to thefault value to be the date.
Does anybody know how to do this?

I tried changing the value to date(), now(), today() but nothing worked. Any help would be greatly appreciated. Thx

 
Did you enter an equals (=) sign before TODAY(), DATE(), NOW()?

That might do the trick.

Did you create the pop-up calendar yourself or is it an OCX?

If you can't be "The Best", be the best at what you can!!!

Never say Never!!!
Nothing is impossible!!!
 
I'm going to assume that you are using an OCX and that it is located on a UserForm.

In the Initialize Event of the form enter:

Calendar1.Value = Format(Now(),"Short Date")

That should do the trick.

If you can't be "The Best", be the best at what you can!!!

Never say Never!!!
Nothing is impossible!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top