Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Replace RTF \par with Carriage Return

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Z. Scharf - 09 Feb 2007 08:14 GMT
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
Jonathan West - 09 Feb 2007 16:45 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> 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.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

Alan Z. Scharf - 10 Feb 2007 07:20 GMT
Jonathan,

Thanks very much.

That worked perfectly!

Regards,

Alan

>> Hi,
>>
[quoted text clipped - 15 lines]
> can also be used in the .Text and .Replacement.Text properties if you want
> to do a search using the VBA Find object.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.