D
Dave Stone
In an attempt to prevent this slipping too far down the
list, I'm re-posting a distilled version of this problem:
I am generating a document which has distinct first page
header and footer and all pages are numbered (in the
footer).
With the following code:
With ActiveDocument.Sections(1)
SubjCateg = "CLASSICS"
DiffCateg = "DIFFERENT"
DateRange = "<date1> - <date2>"
.Headers(wdHeaderFooterFirstPage).Range.Text =
DiffCateg
.Headers(wdHeaderFooterPrimary).Range.Text =
SubjCateg
.Footers(wdHeaderFooterFirstPage).Range.Text
= "SPLAT" & FootText
.Footers(wdHeaderFooterPrimary).Range.Text =
FootText
.Footers
(wdHeaderFooterPrimary).PageNumbers.RestartNumberingAtSecti
on = True
.Footers
(wdHeaderFooterPrimary).PageNumbers.StartingNumber = 5
.Footers(wdHeaderFooterPrimary).PageNumbers.Add _
PageNumberAlignment:=wdAlignPageNumberRight, _
FirstPage:=True
End With
ActiveDocument.Sections
(1).PageSetup.DifferentFirstPageHeaderFooter = True
the first page headers and footers are indeed distinct,
but the page number does not appear (only) on the first
page.
I have tried also putting the appropriate equivalent page
number statements for Footers(wdHeaderFooterFirstPage),
but this gives an error: subscript out of range.
Any help gratefully received.
Dave
list, I'm re-posting a distilled version of this problem:
I am generating a document which has distinct first page
header and footer and all pages are numbered (in the
footer).
With the following code:
With ActiveDocument.Sections(1)
SubjCateg = "CLASSICS"
DiffCateg = "DIFFERENT"
DateRange = "<date1> - <date2>"
.Headers(wdHeaderFooterFirstPage).Range.Text =
DiffCateg
.Headers(wdHeaderFooterPrimary).Range.Text =
SubjCateg
.Footers(wdHeaderFooterFirstPage).Range.Text
= "SPLAT" & FootText
.Footers(wdHeaderFooterPrimary).Range.Text =
FootText
.Footers
(wdHeaderFooterPrimary).PageNumbers.RestartNumberingAtSecti
on = True
.Footers
(wdHeaderFooterPrimary).PageNumbers.StartingNumber = 5
.Footers(wdHeaderFooterPrimary).PageNumbers.Add _
PageNumberAlignment:=wdAlignPageNumberRight, _
FirstPage:=True
End With
ActiveDocument.Sections
(1).PageSetup.DifferentFirstPageHeaderFooter = True
the first page headers and footers are indeed distinct,
but the page number does not appear (only) on the first
page.
I have tried also putting the appropriate equivalent page
number statements for Footers(wdHeaderFooterFirstPage),
but this gives an error: subscript out of range.
Any help gratefully received.
Dave