Customizing right-click menu in Word 2007?

P

Paul

I would like to be able to insert a "print" command in the right-click menu
so that I can block out a selection, and then print it (via the context
menu). I have the Quick Print and (regular) Print icons on the QAT but Quick
Print prints up the entire document; the regular Print icon will give me a
window with many options. Is there any way to get a "print selection"
functionality in that right-click context menu?
 
J

Jay Freedman

First insert this macro into a module in Normal.dotm or in a global template:

Sub PrintSelection()
ActiveDocument.PrintOut Range:=wdPrintSelection
End Sub

I'll advise adding another button to the QAT to run this macro. While it is
possible to add a command to a context menu by VBA
(http://gregmaxey.mvps.org/Customize_Word2007_SC_Menu_Programatically.htm),
there are actually many context menus -- one for text, one for floating
graphics, several for tables, etc., which is why they're called "context" menus
-- so you would have to add the command to each menu where you anticipate using
it. The QAT is always available.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all
may benefit.
 

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