Hi,
I'd like to capture doubleclicks on cells in all workbooks so I assume I should use a class module.
(my app_... procedures work well for other purposes)
I'd use the procedure:
Private Sub App_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, ByVal Cancel As Boolean)
according to the help, but when I try to compile it says:
'Procedure declaration does not match description of event or procedure having the same name.'
Could you tell me what can be wrong
I think I cannot use the Workbook_SheetBeforeDoubleClick or Worksheet_SheetBeforeDoubleClick procedures, as I can't assign a code dynamically to the newly created objects, (can I ) and the App_SheetBeforeDoubleClick seems to be mauch more straightforward (I would work...)
Thanks!
Peter

app_sheetbeforedoubleclick exists?
mdelatonow
Your almost there....
You need to make the event handler code an Excel addin. The addin gets loaded with Excel and it creates an intance of the class module and sets the application variable in the class module.
Here's an example...
DoubleClick.xla
Sukh
MikeBarta411
Here's some additional info from our support engineer that might be helpful:
Public WithEvents App1 As Application
MsgBox "double clicked"
End Sub
Set App1 = Application
End Sub
Dim X As Class1
Set X = New Class1
End Sub
Application or Workbook
Occurs when any worksheet is double-clicked, before the default double-click action.
-brenda (ISV Buddy Team)