Retreive Formated Text of a particular paragraph.

  • Thread starter Thread starter Guest
  • Start date Start date
Selection.Paragraphs(1).Range.FormattedText


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
We tried this but somehow we are only getting Unformatted text. Please tell
us what should be the container to display the retrieved data.
 
I think your confusion comes from whatever your mental definition of
"retrieve" is. The FormattedText property returns a Range object containing
formatted text. You can assign that to another Range object, in the same
document or a different document. You cannot assign it to a String variable
without losing the formatting, because a String has no way to store
formatting.

I suggest looking at the examples in the VBA help topic about "FormattedText
Property" to see how it's used. If you still can't get it to work, post back
and (a) explain exactly what you want to accomplish and (b) show the code
you're trying to use.
 

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

Back
Top