Finding/replacing page breaks

C

Conan Kelly

Hello all,

Is a page break a character that can be searched for and replaced using Find & Replace? What is it's Unicode/ASCII character codes?

With code, I'm going to need to search for it & replace it.
 
D

Dave Lett

Hi Conan,

It can be if it's manual. This routine replaces all of the manual page
breaks with a paragraph.

With Selection
.HomeKey unit:=wdStory
With .Find
.ClearFormatting
.Text = "^m"
With .replacement
.ClearFormatting
.Text = "^p"
End With
.Execute Replace:=wdReplaceAll
End With
End With

HTH,
Dave
 
C

Conan Kelly

Dave Lett,

Thank you for the help.

That looks like it might do exactly what I need it to do.

Thanks again for all of your help,

Conan
 

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