Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

23 views
Skip to first unread message

Green@discussions.microsoft.com Lucky Green

unread,
Oct 1, 2006, 10:09:02 PM10/1/06
to
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


TedMi

unread,
Oct 2, 2006, 9:40:02 AM10/2/06
to
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
--
Ted

Lucky Green

unread,
Oct 3, 2006, 10:54:02 PM10/3/06
to
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

garfield-n-odie [MVP]

unread,
Oct 4, 2006, 1:52:21 AM10/4/06
to
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.

0 new messages