How to catch mouse/keyboard event in Office addin
When working with forms, each of the different objects including ActiveX
objects has the different Events. To look up the events, right click on the
Object, then click on Properties
Now click on "Event" tab.
It's in there where you have MouseDown, MouseMove, MouseUp, KeyDown,
KeyPress, and KeyUp events, if available, which should be in a good majority
of the cases. Now click on one of those events, click on the "..." to the
right of it, then click on "Code"
If you have created your own objects, you will also have to create the
events for that object in a class module of the object that deals with using
the WithEvents command, something I still have yet to learn more about.
--
Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"Frank King" wrote in message
...
Hi,
I am writing Office COM addin. I need to catch mouse/
keyboard events, such as mouse click, key press inside
the addin. Could somebody tell me some information
about it?
Thank you very much.
fk
|