Word 2003: Macro to insert manual page breaks

S

Sprinter

We need to match the original layout of Word 2003 documents when
creating the HTML version for filing with the SEC. Some documents are
over 200 pages. Currently we are inserting a manual page break at the
end of each page. Does Word use an internal code to know where to break
the pages for 8.5 x 11 paper that we could use in creating a macro?
 
F

Fumei2 via OfficeKB.com

No, not really. Word derives (calculates) page breaks based on the current
printer driver.
 
S

Sprinter

Simon said:
Fumei2, could it not be achieved by adding a field to each page an
inserting a page break after that?

I have tried this but an error message comes up reading that it canno
replace the field with a break no matter what I use. Additionally, if
inserted a field for each page this would take the same amount of tim
as manually inserting the page breaks. Since we have some document
that are over 200 pages I was trying to find another avenue to sav
processing time.

Thank you for your feedback
 
S

Simon Lloyd

I was thinking perhaps in the header or footer as these would appear on
every page from one insertion, and not to replace the the field but
insert after.

Sprinter;641115 said:
I have tried this but an error message comes up reading that it cannot
replace the field with a break no matter what I use. Additionally, if I
inserted a field for each page this would take the same amount of time
as manually inserting the page breaks. Since we have some documents that
are over 200 pages I was trying to find another avenue to save
processing time.

Thank you for your feedback.


--
Simon Lloyd

Regards,
Simon Lloyd
'Microsoft Office Help' (http://www.thecodecage.com)
 
S

Sprinter

Simon said:
I was thinking perhaps in the header or footer as these would appear o
every page from one insertion, and not to replace the the field bu
insert after.

I did insert the field in the footer but this seems to be what i
causing the issue. I haven't tried inserting it in the header but wil
attempt this. I also tried your suggestion on not replacing the fiel
but inserting the break code after it but still received the error.

Thank you very much for the additional feedback
 
M

macropod

Hi Sprinter,

The field code for creating a manual page break is {QUOTE 12}. There's no point in putting such a field in the header or footer,
though, and putting it into the body of each page would take just as long (if not more so) than any other way you might think of.

As Fumei says, Word uses the active printer's driver to determine the page layout and where to insert the automatic page breaks.
Although you could use a macro to insert manual page breaks at the same point that Word inserts the automatic page breaks, the
manual page breaks could affect the formatting of any paragraphs that span the page break and, more importantly, could end up being
in the wrong place for any other printer driver.

--
Cheers
macropod
[Microsoft MVP - Word]


Sprinter said:
I was thinking perhaps in the header or footer as these would appear on
every page from one insertion, and not to replace the the field but
insert after.

I did insert the field in the footer but this seems to be what is
causing the issue. I haven't tried inserting it in the header but will
attempt this. I also tried your suggestion on not replacing the field
but inserting the break code after it but still received the error.

Thank you very much for the additional feedback!


--
Sprinter
------------------------------------------------------------------------
Sprinter's Profile: 1480
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=178495

Microsoft Office Help
 
S

Sprinter

Thank you so very much for your explanation. This is good to know
although like everyone has advised, is a moot point for this instance.
Everyone's assistance is very much appreciated.




macropod;641400 said:
Hi Sprinter,

The field code for creating a manual page break is {QUOTE 12}. There's
no point in putting such a field in the header or footer,
though, and putting it into the body of each page would take just as
long (if not more so) than any other way you might think of.

As Fumei says, Word uses the active printer's driver to determine the
page layout and where to insert the automatic page breaks.
Although you could use a macro to insert manual page breaks at the same
point that Word inserts the automatic page breaks, the
manual page breaks could affect the formatting of any paragraphs that
span the page break and, more importantly, could end up being
in the wrong place for any other printer driver.

--
Cheers
macropod
[Microsoft MVP - Word]


Sprinter said:
I did insert the field in the footer but this seems to be what is
causing the issue. I haven't tried inserting it in the header but will
attempt this. I also tried your suggestion on not replacing the field
but inserting the break code after it but still received the error.

Thank you very much for the additional feedback!


--
Sprinter
------------------------------------------------------------------------
Sprinter's Profile: 1480
View this thread: 'Word 2003: Macro to insert manual page breaks -
The Code Cage Forums'
(http://www.thecodecage.com/forumz/showthread.php?t=178495)
'Microsoft Office Help' ("http://www.thecodecage.com")
 

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