Replacing Variable Text with a Hard Page

L

LA Lawyer

I have a list of addresses in a string variable which are separated by two
lines.

I want to replace each occurance of two lines with a page separator.

How is that done?
 
D

Doug Robbins - Word MVP

Use Edit>Replace to replace ^p^p with ^m

--
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, originally posted via msnews.microsoft.com
 
J

Jay Freedman

myStr = Replace(myStr, vbCr & vbCr, vbFormFeed)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all
may benefit.
 

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