Trying to copy formatted text _without_ Style?

E

Ed

I get documents with a mish-mash of styles and formatting applied directly
to the text. I am wondering if there is some way I could copy all of the
text and any direct formatting over into a new doc based on my own template,
but not any styles. I tried FormattedText in VBA, but the style came into
the new document with the text - so did Edit>>Paste Special>>RTF.

I'm beginning to think I would need to crawl through every word of every
paragraph, capture any formatting applied in an array, paste the text over
as unformatted, then read the paragraph word by word and apply any
formatting in the array.

Is there an easier way?

Ed
 
J

j.a. de gijsel

Ed said:
I get documents with a mish-mash of styles and formatting applied directly
to the text. I am wondering if there is some way I could copy all of the
text and any direct formatting over into a new doc based on my own template,
but not any styles. I tried FormattedText in VBA, but the style came into
the new document with the text - so did Edit>>Paste Special>>RTF.

I'm beginning to think I would need to crawl through every word of every
paragraph, capture any formatting applied in an array, paste the text over
as unformatted, then read the paragraph word by word and apply any
formatting in the array.

Is there an easier way?

Ed
Perhaps this will do the trick: in order to carry out macro, first
select all
then carry out macro, of course control All may be integrated into the
macro.

Sub Opmaak4()
'
' Macro8 Macro
' Macro opgenomen op 11-10-2005
'
Selection.PasteAndFormat (wdFormatPlainText)
End Sub
 

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