ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Today variable to calender control (https://www.excelbanter.com/excel-discussion-misc-queries/17021-today-variable-calender-control.html)

anonymous

Today variable to calender control
 
How do I pass the Today variable to a calender control on
a form to set the default as the current date?

TIA

Anonymous

Paul B

TIA, use the user form initialize event like this

Private Sub UserForm_Initialize()
Calendar1.Today
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"anonymous" wrote in message
...
How do I pass the Today variable to a calender control on
a form to set the default as the current date?

TIA

Anonymous




Ron de Bruin

See
http://www.rondebruin.nl/calendar.htm

' select Today's date in the Calendar
Calendar1.Value = Date



--
Regards Ron de Bruin
http://www.rondebruin.nl



"anonymous" wrote in message ...
How do I pass the Today variable to a calender control on
a form to set the default as the current date?

TIA

Anonymous





All times are GMT +1. The time now is 12:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com