How to default to "Unformatted Text" in "Paste Special" in Word 20

G

Guest

I like the fact that Word 2007 includes “Paste Special†in the Ribbon.
However, this only solves half of the old problem with Paste Special. The
other half of the problem is that Paste Special does not default to pasting
unformatted text, the primary reason why one generally uses Paste Special in
the first place.

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
 
G

Guest

Copy some text into the clipboard, then record this series of mouse clicks
into a macro:
Edit, Paste Special, Unformatted Text, OK
Give the macro a name.
Assign this macro to a keyboard shortcut - I use Ctl-Shift-V
See Word help for information on now to create shortcuts
 
G

Guest

TedMi,
Unfortunately, recording a marcro for Paste Special -> Unformatted Text does
not work in Word 2007 as described.

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
 
G

garfield-n-odie [MVP]

In Word 2003 and earlier, it's a known issue that the macro
recorder yields incorrect results when recording the paste
special as unformatted text command. Instead, try using:

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.
 

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