Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Calendar Control Action
I added a calendar control to a workbook and it doesn't close after I select
a date (I have to manually click the red "close" box). What command should I add in which module so that the calendar will close automatically upon clicking on a date? Below are the three modules that operate the calendar: Private Sub Calendar1_Click() ActiveCell = Calendar1.Value End Sub Private Sub UserForm_Activate() Me.Calendar1.Value = Date End Sub Sub_ShowIt() UserForm1.Show End Sub Thanks! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Calendar Control Action
Use
Unload Me in the click event after ActiveCell = Calendar1.Value See my site for more example code http://www.rondebruin.nl/calendar.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Excel User" <Excel wrote in message ... I added a calendar control to a workbook and it doesn't close after I select a date (I have to manually click the red "close" box). What command should I add in which module so that the calendar will close automatically upon clicking on a date? Below are the three modules that operate the calendar: Private Sub Calendar1_Click() ActiveCell = Calendar1.Value End Sub Private Sub UserForm_Activate() Me.Calendar1.Value = Date End Sub Sub_ShowIt() UserForm1.Show End Sub Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Planilha action control | New Users to Excel | |||
Copy of sheet contains the named 'Control'. Action required. | Excel Programming | |||
calendar control | Excel Programming | |||
Calendar Control: Can't exit design mode because control can't be created | Excel Programming | |||
Calendar Control | Excel Programming |