How do I keep destination formatting when pasting?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to set the default to keep destination formatting when I need to paste
from a different document, instead of having to select it from the Paste
Options that pops up every time I paste. I've searched Help over and over
and can't find a simple answer to this.
 
ldowcvin said:
I want to set the default to keep destination formatting when I need to
paste
from a different document, instead of having to select it from the Paste
Options that pops up every time I paste. I've searched Help over and over
and can't find a simple answer to this.

I use this macro (which was created by someone else in one of the Word
groups):

Sub PasteUnformatted()
'
' PasteUnformatted Macro
' Control shift V pastes the clipboard without formatting
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, Placement:= _
wdInLine, DisplayAsIcon:=False
End Sub

I've associated it with control-shift-V. It has the effect of keeping the
destination formatting.
 
Ideally you should error trap the macro eg

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

or you'll get a vba error if the clipboard is empty.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
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

Back
Top