Paragraph Mark

B

Brad

Hi,
Can anyone tell me if there is a Chr(?) you could use for
a paragraph mark. I know Chr(9) is for a tab, but is
there one for a paragraph return?

Thanks to all.
 
K

Klaus Linke

Brad said:
Hi,
Can anyone tell me if there is a Chr(?) you could use for
a paragraph mark. I know Chr(9) is for a tab, but is
there one for a paragraph return?

Thanks to all.


Hi Brad,

If you want to insert a paragraph mark, use the VBA methods InsertParagraph, InsertParagraphBefore, InsertParagraphAfter.

If you want to look for paragraph marks in a string, look for the code Chr(13) (or vbCr).
If you want to look for it using "Edit > Find", use ^p, or ^13 in wildcard searches.

In case you want to insert a paragraph mark (in "Replace with:"), always use ^p, not ^13, since a para mark is more than a character
with code ^13 -- it stores the formatting for the paragraph.

Greetings,
Klaus
 

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