to add my own command in the pop up menu that is opened by RMB

A

alfonso gonzales

Hello everybody,

I need some hints on how I can add my own command/option in the pop up menu
that is opened by clicking the right mouse button.
The situation is like this:
1. There is selected text (consisting of numbers).
2. A user clicks it with the right mouse button and the usual Word popup
menu pops up.
3. I need one custom option to be available in the popup menu. I need to
link that option to my macro that converts the selected text containing
numbers into words.

I have built that conversion function and the macro that uses it. Now all
that remains is just adding one menu item "Add_NumbersToWords_Text" to the
popup menu and associating it with my macro so that on clicking the command
the selected text will be conveniently extended with the text expressing the
selected amount in words. How do I go about that?

Alvaro E. Gonzales
 
D

Doug Robbins

Select Customize from the Tools menu and then go to the Toolbars tab and
select the Shortcut menus item. Then expand the pulldowns on that toolbar
and locate the one to which you want to add the command. Then move the
Commands tab of the Customize dialog and select the Macros category and then
click and drag the macro that you want onto the shortcut menu.

--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top