Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default dblclick event

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default dblclick event

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default dblclick event

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default dblclick event

Bob,
many thanks. It works!

Marco


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default dblclick event

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
use list box text for advanced filter on dblClick sdaenitz Excel Discussion (Misc queries) 0 December 1st 08 06:59 PM
event marker68 Excel Discussion (Misc queries) 1 April 4th 08 02:38 PM
vba event Daniel P Excel Programming 4 February 20th 04 03:29 PM
change event/after update event?? scrabtree23[_2_] Excel Programming 1 October 20th 03 07:09 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


All times are GMT +1. The time now is 02:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"