Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hiya,
Wonder if anyone here could help me with a probelm I have getting a calender control to pop up when a user clicks a cell. I have this working in a test spreadsheet, but I can't get it to work as part of a separate SS. On the test spreadsheet I have used the following code in the worksheet to pop up the active X control when the user clicks on cell B16: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$B$16" Then Call OpenCalendar End If End Sub Where OpenCalender is a function defined in the same module that has the routing: Sub OpenCalendar() frmCalender.Show End Sub My problem is that although I can get the control to pop up in a test spreadsheet, once I add it to my main spreadsheet it doesn't work. Running the OpenCalendar function via the macros menu works fine. It just doesn't appear when clicking cells. THanks in advance if anyone can suggest anything. -- Ian "tutenkamu" Manning "The greatest thing the devil ever did, was convincing the world he doesn't exist" Kevin Spacey (Verbal Kint); The Usual Suspects |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA Code Not Working | Excel Discussion (Misc queries) | |||
Code not working | Excel Programming | |||
Code not working and can't see why | Excel Discussion (Misc queries) | |||
VB code is not working like it should | Excel Programming | |||
Vb Code not working | Excel Programming |