Re: Word Macro by JGM
JGM
Tue Oct 14 23:22:37 CDT 2003
Hi Babu!
Careful about Jezebel's second option. If you choose that, you also have to
reassign the possible shortcut associated with that menu item as weel as
toolbar buttons.
For example, if you want to replace Print by your own procedure, you can
remove Print from the file menu, put your own menu choice called Print, but
you have to reassign CTRL-P to your macro, and track down all the Print
buttons on toolbars (the Standard toolbar and the PrintPreview toolbar for
example...)
So when all is saiad, Jezebel's first option is the safest and the easiest.
HTH
Cheers!
--
_______________________________________
Jean-Guy Marcil
jmarcil@sympatico.ca
"Jezebel" <grocer@play.net> a écrit dans le message de news:
#LVJGFtkDHA.2060@tk2msftngp13.phx.gbl...
> There are two methods you can use --
>
> 1. Intercept the Word command by writing a macro of the same name. Go to
> Tools > Macro > Macros and select Word Commands from the list to see the
> built-in command names. Most names are the same as the menu name plus
option
> name (eg New on the File menu is called FileNew: if you write a called
> FileNew it will run instead of the built-in command).
>
> 2. Remove the existing option from the menu and add your own in its place
> using the same caption. The menu points to your own macro.
>
>
> "Babu V.T" <babuvt@fusemail.com> wrote in message
> news:040001c39242$78448880$a001280a@phx.gbl...
> > I need a macro that handle menu events in the MS word
> > document.
> > Is it possible to handle menu events in word.
> > I want to handle the following events.
> >
> > 1) selection of one of the menu items in the
> > menu that results when clicking "Accept Change" tool
> > bar button.
> >
> > 2) Selection of menu items in the
> > menu that results when the user right clicks on a text
> > portion.
> >
> > Any suggestion regarding this will be very helpful
>
>