
Signature
Peter Karlström
Midrange AB
Sweden
Hi =?Utf-8?B?UGV0ZXIgS2FybHN0csO2bQ==?=,
> We have a problem:
> One of the objects is to fully create pageheaders/footings for the first
> page and a different ones for the following pages.
> When a new document is created we check if the document consists of 1 or
> more pages. If there is only one page, a pagebreak is inserted in order to
> create the correct pageheader (and foot) for page 2 and forward.
This shouldn't be necessary. The headers/footers exist logically in the
document, even if they can't be seen. Just manipulate the appropriate range
Dim rngHeaderFirstPage as Word.Range
Dim rngHeaderOtherPages as Word.Range
Set rngHeaderFirstPage =
ActiveDocument.Sections(1).Headers(wdHeaderFooterFirstPage).Range
Set rngHeaderOtherPages =
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Peter Karlström - 19 Sep 2006 15:05 GMT
Hi Cindy
Thanks for your quick reply.
I'll look into that.
Regards

Signature
Peter Karlström
Midrange AB
Sweden
> Hi =?Utf-8?B?UGV0ZXIgS2FybHN0csO2bQ==?=,
>
[quoted text clipped - 24 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)