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