When is Chr(13) not a paragraph?

E

Ed

I downloaded a document from a copany site over the internet, then
used a macro to save out a portion of that doc into a Text Stream file
with a .doc extension. I tried running another macro on the new doc,
but it fails because the macro sees only one huge paragraph.

The doc is laid out in a monospaced font with every line 72 characters
long ending in a paragraph break. There is a pilcrow at the end of
each line, and VBA tells me it's Chr(13). But selecting several these
lines and using Tools >> Word Count returns only one paragraph. In
VBA,
Set rng = Selection.Range
MsgBox rng.Paragraphs.Count
returns one paragraph.

I tried saving a portion of this Text Stream doc as a Word doc, but it
still returns only one paragraph. I tried Find.Replace Chr(13) with
Chr(13), but still no luck.

Andy suggestions?

Ed
 

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