Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Calendar control

I have a command button that opens the calendar. It is for reference only.
I would like to have it close when ever I select a cell. I don't want to
have to click the close button
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Calendar control

Is that code what you need?

Private Sub CommandButton1_Click()
' You show calender
UserForm1.Show vbModeless
End Sub

' Put that code you Worksheet change -module
Private Sub Worksheet_SelectionChange(ByVal rng As Range)
Unload UserForm1
End Sub

OR

' Put that code you Workbook Sheet Chenge -module
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Unload UserForm1
End Sub


Regards Kari J Keinonen
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
Calendar Control Benz Excel Programming 6 July 24th 06 04:42 PM
Control disappeared problem - specifically, the Calendar Control JMMach[_2_] Excel Programming 0 December 16th 05 01:53 AM
calendar control 10.0 timmulla Excel Discussion (Misc queries) 1 December 1st 05 12:38 AM
Calendar Control hhh Excel Programming 1 November 29th 05 12:12 AM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM


All times are GMT +1. The time now is 04:09 PM.

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

About Us

"It's about Microsoft Excel"