Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to activate code when someone clicks in a cell?
Essentially I need a calendar pop up to come up when I click in particular cells. Thanks -- Steve R |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Steve,
maybe this event? Private Sub Worksheet_SelectionChange(ByVal Target As Range) MsgBox Target.Top End Sub But I dont know how to get a calendar... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would use the Worksheet_BeforeDoubleClick.
This way users can enter a date the fast way, and call up your calendar control Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Target.Cells.Count = 1 Then If Target.NumberFormat = "mm/dd/yy" Then 'check for number format Show Calendar Cancel = True End If End If End Sub Note you could check for a specific number format, but you could also check for cell validation being date validation. You could also check for a certain cell address as well. DM Unseen |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look here Steve
http://www.rondebruin.nl/calendar.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Steve" wrote in message ... Is it possible to activate code when someone clicks in a cell? Essentially I need a calendar pop up to come up when I click in particular cells. Thanks -- Steve R |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks to all, I will try them all out and let you know.
-- Steve R "Ron de Bruin" wrote: Look here Steve http://www.rondebruin.nl/calendar.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Steve" wrote in message ... Is it possible to activate code when someone clicks in a cell? Essentially I need a calendar pop up to come up when I click in particular cells. Thanks -- Steve R |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Works a treat
Thank you very much -- Steve R "Ron de Bruin" wrote: Look here Steve http://www.rondebruin.nl/calendar.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Steve" wrote in message ... Is it possible to activate code when someone clicks in a cell? Essentially I need a calendar pop up to come up when I click in particular cells. Thanks -- Steve R |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run Code On Activate | Excel Worksheet Functions | |||
what is code to activate a combo box in control toolbox | Excel Discussion (Misc queries) | |||
How to activate "New" tab in Dataform through VB Code | Excel Discussion (Misc queries) | |||
Macro to activate VB Code | Excel Programming | |||
Is it possible to activate a txt document in excel code? | Excel Programming |