P
Peter
How do I change/add items to the menu that comes upo when you press the
right mouse button in Word 2002?
Thank you
Peter
right mouse button in Word 2002?
Thank you
Peter
Peter said:How do I change/add items to the menu that comes upo when you press
the right mouse button in Word 2002?
Thank you
Peter
Jay Freedman said:Hi Peter,
Watch out, that next step is a doozy!
There's no way to preset the Paste Special dialog to Unformatted Text.
You might think you could record a macro, or write one that uses
SendKeys to simulate pressing the arrow key to get the choice. That
frequently won't work properly, because the contents of the list
depend on the contents of the clipboard at the time you open the
dialog. For instance, if a picture is on the clipboard or if the
clipboard is empty, there won't be any Unformatted Text choice in the
list.
What you can do instead is to install the following macro in
Normal.dot or another global template (see
http://www.gmayor.com/installing_macro.htm), and then assign the macro
to the shortcut menu. If the clipboard contains text that can be
pasted unformatted, the macro will do it without showing the dialog;
if the clipboard can't be pasted unformatted, you won't see anything
happen (because of the On Error statement).
Sub PasteSpecialUnformatted()
On Error Resume Next
Selection.PasteSpecial DataType:=wdPasteText
End Sub