KB-27797: Activating Click event by right-clicking on it.

Question:

How can I active a Button’s Click() event by right-clicking on it?

Solution:

To do so, you must write a script on the Button’s MouseUp event to check when the Button parameter’s value is equal to 2 (indicating that it is the right button). For example:


Sub CommandButton1_MouseUp(Button, Shift, X, Y)
IF Button = 2 then
MsgBox “Event fired!”
END IF
End Sub

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *