Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Calendar Control Action

It works. Thank you very much, Ron. I appreciate your valuable help.
Great website, too--I have it bookmarked! Your QDE and Easy Filter add-ins
looks great--I'll be using them soon.
Thanks again.
Regards,
EU

"Ron de Bruin" wrote:

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Planilha action control Renato New Users to Excel 0 December 8th 07 06:34 PM
Copy of sheet contains the named 'Control'. Action required. Pete[_22_] Excel Programming 1 March 3rd 05 04:54 PM
calendar control msnews.microsoft.com[_6_] Excel Programming 1 October 21st 04 04:20 PM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM
Calendar Control Kelly Excel Programming 3 February 19th 04 09:36 PM


All times are GMT +1. The time now is 07:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"