Creating macro

A

Ansie

Good day
Could someone please help me with a macro? I would like to paste text
unformatted into Word.
Thanks
 
H

Helmut Weber

Hi Ansie,

hm...

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

What is the problem?

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

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

Jonathan West

Ansie said:
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.


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

Charles Kenyon

Did you try using the macro recorder to do this?
--
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


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

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