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 / November 2006

Tip: Looking for answers? Try searching our database.

Finding/replacing page breaks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Conan Kelly - 13 Nov 2006 18:56 GMT
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.

Signature

Thanks for any help anyone can provide,

Conan Kelly

Dave Lett - 13 Nov 2006 19:28 GMT
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

> 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.
Conan Kelly - 13 Nov 2006 19:51 GMT
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

> Hi Conan,
>
[quoted text clipped - 22 lines]
>>
>> With code, I'm going to need to search for it & replace it.

Rate this thread:






 
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.