Happy New Year & Dear Fellow Programmers:
Are there any ways to trap the "Mouse Up" or "Mouse Down" events in a Word
Addin project?
Best,
MIS Dude
Are you talking a VSTO or a VBA addin (macro)? Where do you want to
trap those events?
Where Word puts whatever you type: I don't think so, but I might be
wrong.
On the Word 2007 ribbon: no, there is only an onAction event you can
define for when your own addin gets clicked (so that would be the
MouseUp event). You can not capture when one of the predefined items
is clicked. You could of course hide one of the predefined tabs and
replace it with an exact copy where you capture all those onAction
events. (Note that VBA defines sub routines for most menu/ribbon
buttons you click. However, those are 'onAction' events rather than
MouseUp and MouseDown)
On a userform: yes