Re: Intercepting right mouse click - MS Word 2000>

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Customize the relevant right click (Short cut) menu(s) by adding a button
that calls the macro that causes the form to be displayed.

To do that, select Customize from the Tools menu and then go to the Toolbars
tab of the Customize dialog and check the "Shortcut Menus" toolbar. Then go
to the Commands tab and from the Macros Categorym select the command (macro)
and drag it onto the expanded short cut toolbar(s)

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Ian B" <ian@(TakeOut)docspro.co.nz> wrote in message
news:O9QqxYUYIHA.5348@xxxxxxxxxxxxxxxxxxxxxxx
Hi All
This is probably getting outside Word, but its Word and VBA I'm working
with.

I need to intercept a right mouse click when editing a word document and
then showing a form (VB/VBA) of my own.
I have experimented with Spy++ (distributed with VB6) and while I can see
messages from other mouse clicks, I cannot see any WM_RBUTTONxxx messages
from a right mouse click.
I suspect this is because Word may be intercepting the message before
Spy++
sees it.

I'm at (if not beyond!) my programming ability with this so any pointers
greatly appreciated.

Ian B




.



Relevant Pages

  • Re: Another great example of how Word 2007 "brings commands closer to the surface"
    ... even though I know how to customize the Ribbon it's really not ... entry without losing spell check and other functionality. ... since the "majority" of users don't create custom toolbars and custom ... Hey, folks, the "majority" of users also never create a macro, never edit ...
    (microsoft.public.word.newusers)
  • Re: Another great example of how Word 2007 "brings commands closer to the surface"
    ... And this should be more efficient overall, if people can download a program to customize Word rather than having each individual have to learn the skills. ... since the "majority" of users don't create custom toolbars and custom menus, ... macro, and never assign a custom keystroke to a macro or to a built-in ... So, by MS's logic of only keeping features that "most" users use, ...
    (microsoft.public.word.newusers)
  • Re: Shortcut Key for Autofill?
    ... > seen is a short cut key assign to a macro that autofills ... > write a sample for you.(selecting the range to autofill is ... > want then asign it to a custom icon on the tool bar. ... > customize dialog box come up.... ...
    (microsoft.public.excel.misc)
  • Re: Files / documents on a Word Toolbar
    ... Create a macro in the Normal.dot ... template that opens the document you ... In the Customize dialog, choose the Macros category and drag the ... document-opening macros to the toolbar. ...
    (microsoft.public.word.customization.menustoolbars)
  • RE: Macro run by clicking an icon?
    ... This opens the Customize dialog. ... The macro you are about to record should show in the Commands box (possibly ... You can select a pre-defined icon by clicking "Change Button Image" and then ...
    (microsoft.public.word.vba.general)