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 / February 2006

Tip: Looking for answers? Try searching our database.

Creating macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ansie - 09 Feb 2006 11:30 GMT
Good day
Could someone please help me with a macro?  I would like to paste text
unformatted into Word.
Thanks
Signature

Ansie

Helmut Weber - 09 Feb 2006 12:11 GMT
Hi Ansie,

hm...

in a word-document, there can be no unformatted text.
Each and every letter has a formatting.

What is the problem?

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Jonathan West - 09 Feb 2006 13:30 GMT
> Good day
> Could someone please help me with a macro?  I would like to paste text
> unformatted into Word.
> Thanks

Sub PasteUnformatted
   Selection.PasteSpecial DataType:=wdPasteText
End Sub

Works will all versions of Word from 97 onwards.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 

Charles Kenyon - 09 Feb 2006 14:29 GMT
Did you try using the macro recorder to do this?
Signature

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Good day
> Could someone please help me with a macro?  I would like to paste text
> unformatted into Word.
> Thanks
 
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.