Paste Unformatted Text Macro Button

B

binar

Fellow Forum Members,
I'm doing a lot of copying from other documents and pasting the text into my
own document using Edit -> Paste Special -> Unformatted Text. I have been
unsuccessful in creating a custom button for my Formatting ToolBar that would
enable me to paste whatever data in the clipboard as "unformatted text". The
problem I'm having is that my button only gets me to the Paste Special
Dialog window, where I then have to select from the list "unformatted text"
myself and then hit OK. I want to avoid this, and have my button do an
automatic "unformated text" paste special operation as a single process. Can
anyone out there tell me how to setup such a button? Any help will be
greatly appreciated. Thanks.
 
G

Graham Mayor

The following macro will paste unformatted text

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

See http://www.gmayor.com/installing_macro.htm for the installation and
buttom information.

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


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

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