Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2007

Tip: Looking for answers? Try searching our database.

"Paste Special - Unformatted Text" Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim In Minneapolis - 25 Nov 2007 02:34 GMT
Hi.  Can somebody tell me how to create a macro to . . .

"Paste Special . . . UNFORMATTED Text"

(I've tried clicking onthe "Paste" toolbar icon during macro-creation, and
even though I DO try to record the "Unformatted Text" option, before closing
the recording . . . . when actually executing, the macro just performs a
STANDARD paste . . . i.e. NOT unformatted!)

Ugh.

Thanks for anybody's help.
Bill Foley - 25 Nov 2007 03:37 GMT
Try this:

Sub PasteSpecialText()
   Selection.Range.PasteSpecial DataType:=wdPasteText
End Sub

Bill Foley

> Hi.  Can somebody tell me how to create a macro to . . .
>
[quoted text clipped - 9 lines]
>
> Thanks for anybody's help.
Jim In Minneapolis - 25 Nov 2007 09:00 GMT
Thanks so much, Bill.

Yes . . . that works wonderfully!  

Can I ask you another question? . . .

I've just recently swithced from Word 2003 to Word 2007.  I have a few
really-time-consuming macros in my Words 2003 "normal.dot".   Is there any
chance I can somehow import than into Word 2007?

I don't have a clue how to go about it.  What do you think?

> Try this:
>
[quoted text clipped - 17 lines]
> >
> > Thanks for anybody's help.
Graham Mayor - 25 Nov 2007 10:56 GMT
It would help to error trap the paste macro so it doesn't fall over if there
is nothing in the clipboard

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

I assume you mean time *saving* macros? Most Word 2003 macros will run in
2007, so copy them there and see what happens. If you have a problem we may
be help you to resolve it then - see
http://www.gmayor.com/installing_macro.htm

Signature

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Thanks so much, Bill.
>
[quoted text clipped - 29 lines]
>>>
>>> Thanks for anybody's help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.