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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,136,991
Messages
5,678,993
Members
419,797
Latest member
ikethegenius

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
Top