G
Guest
Using XL2003.
I have custom command bar that I've attached to an add-in with different
procedures for each button (via the OnAction property). Everything works
fine, but I would like to add some more functionality so that if a user
double clicks on a button a different stream of code will run. Since you can
only associate one procedure with a command bar button (as far as I know), I
was hoping that there was some way to determine if the user single or double
clicked the button and then I could continue accordingly. For example (psuedo
code),
Sub CustomButton()
If SingleClick then
' Perform single click code
Elseif DoubleClick then
' Perform double click code
EndIf
End Sub
Any help would be greatly appreciated. Thanks in advance.
-Cory
I have custom command bar that I've attached to an add-in with different
procedures for each button (via the OnAction property). Everything works
fine, but I would like to add some more functionality so that if a user
double clicks on a button a different stream of code will run. Since you can
only associate one procedure with a command bar button (as far as I know), I
was hoping that there was some way to determine if the user single or double
clicked the button and then I could continue accordingly. For example (psuedo
code),
Sub CustomButton()
If SingleClick then
' Perform single click code
Elseif DoubleClick then
' Perform double click code
EndIf
End Sub
Any help would be greatly appreciated. Thanks in advance.
-Cory