Paste Unformatted

R

RodneyRichardSones

I would like to make the "paste unformatted" command available to a keyboard
shortcut.

Does anyone know the easiest way to do this?
 
P

p0

I would like to make the "paste unformatted" command available to a keyboard
shortcut.

Does anyone know the easiest way to do this?

If you click the Microsoft Office button in Word, you will find an
"Word options" button at the bottom. Under "Advanced", you can specify
how default paste options should be done.


If you still want a separate shortcut key for it, you will have to use
a Macro as the option is not available among the common commands.
Macro tools can be found under the 'Developer' tab. If you don't see
that tab, click the Microsoft Office button in Word, select "Word
options" and under "Popular" select "Show developer tab in the
ribbon".

Click the "Macros" button on the developer tab. Enter a name for the
macro, e.g. "PasteWithoutFormatting", and click create. You will get
something like this:

<-- code start -->
Sub PasteWithoutFormatting()
'
' PasteWithoutFormatting Macro
'
'

End Sub
<-- code end -->

Now change that into the following:

<-- code start -->
Sub PasteWithoutFormatting()
Selection.PasteAndFormat (wdFormatPlainText)
End Sub
<-- code end -->

Now all you have to do is assign a hotkey to the macro. This can be
done by clicking the Microsoft Office button, followed by "Word
options", then select 'Customize' and at the button of that screen,
select 'Customize...' next to keyboard shortcuts. In the category
section, you have to select macros and then pick your macro
(PasteWithoutFormatting) from the list and assign it a hotkey.

HTH

Yves
 
I

Idaho Word Man

Okay, call me stupid, but where's the "Microsoft Office" button in Word? I
can't see it. Is that a Word 2007 thing? (I'm still running 2003.)
 
U

USEN

Hi Idaho...yep, that's a 2007 button. I'm not certain how you set defaults
in 2003. You might try Alt+Ctrl+V to "paste special", then choose text to
paste "unformatted".
 
G

Graham Mayor

Add the following macro to an unallocated keyboard shortcut of your choice

Sub PasteUnfText()
On Error GoTo oops
Selection.PasteSpecial _
DataType:=wdPasteText, _
Placement:=wdInLine
End
oops:
Beep
End Sub

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

The macro recorder in Word 2007 (or 2003) will not correctly record paste
special options.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Suzanne S. Barnhill

Unfortunately, Word 2003 doesn't have the same control over how text is
pasted. There are some options on the Edit tab of Tools | Options in Word
2003, but they don't have anything to do with "paste unformatted." One
controls the wrapping style for inserted or pasted pictures. There are also
some "Smart cut and paste" settings and the option to show or not show the
Paste Options button.
 
S

SandraNoble

I'm not sure how Rodney got things to work.

I want to paste unformatted unicode.

Had a macro set up i 2003 for years.

Now that I have 2007 I cannot get it to work.

I recorded the macro (this function sucks in 2007)
and the code defaults to unformatted.


So I looked on my laptop which still has 2003 and updated the macro to match.

Still tje "paste special unformatted unicode" feature does not work.

i use this a lot and would like to get it working.

I am not a developer, so I have no idea what to do with the
http://word.mvps.org site mentioned by Graham with all the commands.

here's my macro:
Sub unicodepaste()
'
' unicodepaste Macro
'
'
Selection.PasteAndFormat (wdPasteSpecialUnicode)
End Sub

Sandra
 
G

Graham Mayor

The macro recorder in 2007 has similar limitations to those of 2003 and the
macro code you have quoted does not work as you intend.
What you appear to need is as follows which will insert the clipboard
content with the format at the cursor position.

Sub PasteUnfText()
On Error GoTo Oops
Selection.PasteSpecial DataType:=wdPasteText, _
Placement:=wdInLine
End
Oops:
Beep
End Sub

The alternative data types available are

wdPasteBitmap -Bitmap.
wdPasteDeviceIndependentBitmap -Device-independent bitmap.
wdPasteEnhancedMetafile -Enhanced metafile.
wdPasteHTML -HTML.
wdPasteHyperlink -Hyperlink.
wdPasteMetafilePicture -Metafile picture.
wdPasteOLEObject -OLE object.
wdPasteRTF -Rich Text Format (RTF).
wdPasteShape -Shape.
wdPasteText -Text.


See http://www.gmayor.com/installing_macro.htm for installation
instructions.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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