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 / September 2005

Tip: Looking for answers? Try searching our database.

How do I find the last page break of a document?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Evelyn - 09 Sep 2005 22:05 GMT
I need to format a document that is originated in Text Only.  I can get all
the formatting, including page braks.  However, the first line following each
page break needs to have a formating style header.  How do I find out that
this is the las page break?
Jezebel - 10 Sep 2005 00:00 GMT
How are page breaks formatted in text-only document?

>I need to format a document that is originated in Text Only.  I can get all
> the formatting, including page braks.  However, the first line following
> each
> page break needs to have a formating style header.  How do I find out that
> this is the las page break?
Evelyn - 12 Sep 2005 15:33 GMT
As I am going through the formatting process, the last 'paragraph' has a
standard 'heading, which may or may not have test that follows.  This is then
followed by two carriage returns, a set of unerlines, another carriage
return, then the line that needs to be formatted as a header.  I have written
the macro to search for the carriage return, underlines and carriage return
and replace these with a manual page break.  but how do say to format this
frst line only as the header format.  When I have tried telling it to format
after the page break, it formats the entire rest of the document as the
header format.  If I do it seperately, then it doesn't pick up the last page,
and continues to look for more page breaks.  I need to know how the determine
the end of the document or the last page break.

> How are page breaks formatted in text-only document?
>
[quoted text clipped - 3 lines]
> > page break needs to have a formating style header.  How do I find out that
> > this is the las page break?
Evelyn - 14 Sep 2005 16:45 GMT
I got it.  In the process of formatting the document, I insert manual page
breaks.  Then, using a variation of a macro found at MVP, I count how many
manual page breaks I have inserted.  Then I do a search for manual page
breaks, move forward one character, and apply the heading format.

Thanks.

> I need to format a document that is originated in Text Only.  I can get all
> the formatting, including page braks.  However, the first line following each
> page break needs to have a formating style header.  How do I find out that
> this is the las page break?
Jean-Guy Marcil - 14 Sep 2005 19:37 GMT
Evelyn was telling us:
Evelyn nous racontait que :

> I got it.  In the process of formatting the document, I insert manual
> page breaks.  Then, using a variation of a macro found at MVP, I
[quoted text clipped - 8 lines]
>> line following each page break needs to have a formating style
>> header.  How do I find out that this is the las page break?

Sounds complicated... Why not include the setting "Page break before" in the
Heading style and not use page breaks at all?

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

 
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.