modify context menus programmatically

D

#DIV/0

Is it possible, as in Excel, to add controls to the context menus ?
Just in certain situations, in certain templates I want specific custom menu
items.
With Excel you can:
With Application.CommandBars("Whatever")
Controls("...").Add etc....

OK in Excel you can even specify it to happen only if you right-click over a
certain cell range and of course I won't get that from Word. But to set this
through a routine would be much easier as I've seen the number of different
context menus is bewildering in Word.
For every user who might possibly use that template I have to manually
insert the macro, change the name, get the icon etc etc

As an example, how would I go about putting in a "Paste unformatted" into
all context menus ?

Sub PasteNoFormat()
Selection.PasteSpecial DataType:=wdPasteText
End Sub
 

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