Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
does anybody know how to catch the dblclick event on any cell in an .xla (AddIn)? I wrote some workbook functions and want to be notified if any of my functions is double clicked. Thanks, Marco |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Marco,
You need to use application events. First, in your addin, add a class module say called clsAppEvenrts. In the ThisWorkbbok module, add this code Dim AppClass As New clsAppEvents Private Sub Workbook_Open() Set AppClass.App = Application End Sub and then in the class module add this code Public WithEvents App As Application Private Sub App_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean) End Sub and add the code in there. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Marco" wrote in message ... Hi, does anybody know how to catch the dblclick event on any cell in an .xla (AddIn)? I wrote some workbook functions and want to be notified if any of my functions is double clicked. Thanks, Marco |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Where would your functions be when they are double clicked? In otherwords,
where is the user doubleclicking? -- Regards, Tom Ogilvy "Marco" wrote in message ... Hi, does anybody know how to catch the dblclick event on any cell in an .xla (AddIn)? I wrote some workbook functions and want to be notified if any of my functions is double clicked. Thanks, Marco |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob,
many thanks. It works! Marco |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The user is doubleclicking any cell that may contain one of the functions I
wrote. "Tom Ogilvy" schrieb im Newsbeitrag ... Where would your functions be when they are double clicked? In otherwords, where is the user doubleclicking? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
use list box text for advanced filter on dblClick | Excel Discussion (Misc queries) | |||
event | Excel Discussion (Misc queries) | |||
vba event | Excel Programming | |||
change event/after update event?? | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |