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 / Long Documents / August 2004

Tip: Looking for answers? Try searching our database.

Programatically insert page breaks ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mscertified - 12 Aug 2004 19:13 GMT
I need to insert page breaks into my document wherever a certain character
string occurs in the document.
I also need to remove all the Word inserted page breaks where the document
goes over a certain number of lines.
How could I do this?

Why? Its a long story but this document was transferred from a mainframe
computer system that formats the document with EBCDIC carriage returns.
Suzanne S. Barnhill - 12 Aug 2004 20:37 GMT
Remove page breaks first: search for ^m and replace with nothing. Then
search for your text string and replace with ^m.

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> I need to insert page breaks into my document wherever a certain character
> string occurs in the document.
[quoted text clipped - 4 lines]
> Why? Its a long story but this document was transferred from a mainframe
> computer system that formats the document with EBCDIC carriage returns.
Graham Mayor - 13 Aug 2004 07:37 GMT
I think your second search should replace with ^&^m or ^m^& depending on
whether the break goes before or after the text string.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Remove page breaks first: search for ^m and replace with nothing. Then
> search for your text string and replace with ^m.
[quoted text clipped - 8 lines]
>> mainframe computer system that formats the document with EBCDIC
>> carriage returns.
Suzanne S. Barnhill - 13 Aug 2004 15:38 GMT
Good point. I guess I assumed that he was using a dummy text string to
indicate where a page break should be.

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> I think your second search should replace with ^&^m or ^m^& depending on
> whether the break goes before or after the text string.
[quoted text clipped - 11 lines]
> >> mainframe computer system that formats the document with EBCDIC
> >> carriage returns.
Graham Mayor - 13 Aug 2004 19:25 GMT
He could have been :)

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Good point. I guess I assumed that he was using a dummy text string to
> indicate where a page break should be.
[quoted text clipped - 22 lines]
>>>> mainframe computer system that formats the document with EBCDIC
>>>> carriage returns.
 
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.