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.
 
Top