Replace RTF \par with Carriage Return

A

Alan Z. Scharf

Hi,

I have plain text with the RTF code "\par\par", indicating a blank line
between paragraphs.

I need to put this text into a word document and replace the "\par\par" with
two paragraph marks, i.e.two carrage returns.

I tried Search and Replace to replace the "\par\par" wich char(13), but that
didn't work.

Is there a way to do this?

Thanks.

Alan
 
J

Jonathan West

Alan Z. Scharf said:
Hi,

I have plain text with the RTF code "\par\par", indicating a blank line
between paragraphs.

I need to put this text into a word document and replace the "\par\par"
with two paragraph marks, i.e.two carrage returns.

I tried Search and Replace to replace the "\par\par" wich char(13), but
that didn't work.

In the Edit Replace dialog, replace "\par\par" with "^p^p".

To find out the various codes for nonprinting characters you can use in the
Find & Replace dialogs, position the cursor in the Find What dialog, click
the More button if necessary to show the enlarged dialog, and click the
Special button to see a list of codes and their meanings. These codes can
also be used in the .Text and .Replacement.Text properties if you want to do
a search using the VBA Find object.
 

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