a little prob with Calendar Control

irresistible007

Board Regular
Joined
Nov 24, 2005
Messages
173
okie i have a calendar control on my sheet which is only visible when a user click a combo drop down button... and gets invisble again when user selects a date (selected date is then passed to that combo)...

The little prob with it is that while calendar is visible if the user clicks on sheet the calendar doesn't just gets invisible which i want it to...

What are the suggestions?... what i have figured out yet... is that may be the best event to trigger for this purpose is combodate_DropButtonClick cuz the calendar is only visible at this point in time...

So..
Code:
Private Sub combodate_DropButtonClick()
Calendar1.Visible = True

End Sub

I think it can be done by just putting a couple of lines before end Sub...but what it has to be...?

Maybe something like a If-Then condition to check if the Name Box (Excel's own control.. on left of formula bar) isn't blank cuz a positive thing is that when a control on sheet is selected the name box gets empty...

what do you suggest
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top