Is there any way to a) make the selection of Unformatted Text “sticky” so it
does not have to be selected on each paste? And b) is there a way to create a
keyboard shortcut to Paste Special -> Unformatted Text. Lastly, c) is there a
way to assign the Paste Special -> Unformatted Text combination to the Quick
Access Toolbar?
Thanks,
--Lucky
Recording the macro creates the following VB code:
SelectionPasteAndFormat (wdPasteText)
However, executing the macro via CTL-SHIFT-V simply pastes formatted text.
I also tried using SelectionPasteAndFormat DataType:=wdPasteText, which Word
2007 rejected outright.
Suggestions are appreciated,
--Lucky
Sub PasteUnfText()
On Error GoTo oops
Selection.PasteSpecial DataType:=wdPasteText
End
oops:
Beep
End Sub
and then assign the macro to a toolbar button or a keyboard
shortcut to make it easy to run. See:
http://www.gmayor.com/installing_macro.htm
http://word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm
http://word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToHotkey.htm .
These instructions were written for Word 2003 and earlier, and I
don't have Word 2007, so you'll have to experiment a bit to see
how much of this you can use in Word 2007.