D
Dave Stone
I guess there must be a magic formula for persuading Word
to put different headers/footers on the first page of a
document from all the rest, but I can't figure it out.
What I have in effect is:
ActiveDocument.PageSetup.DifferentFirstPageHeaderFooter =
True
With ActiveDocument.Sections(1).Header _
(wdHeaderFooterPrimary)
SubjCateg = "CLASSICS"
.Range.InsertAfter (SubjCateg & vbCrLf)
End With
With ActiveDocument.Sections(1).Headers _
(wdHeaderFooterFirstPage)
SubjCateg = "DIFFERENT"
.Range.InsertAfter (SubjCateg & vbCrLf)
End With
But all the headers come out as "CLASSICS"! Don't seem
logical to me....
Dave
to put different headers/footers on the first page of a
document from all the rest, but I can't figure it out.
What I have in effect is:
ActiveDocument.PageSetup.DifferentFirstPageHeaderFooter =
True
With ActiveDocument.Sections(1).Header _
(wdHeaderFooterPrimary)
SubjCateg = "CLASSICS"
.Range.InsertAfter (SubjCateg & vbCrLf)
End With
With ActiveDocument.Sections(1).Headers _
(wdHeaderFooterFirstPage)
SubjCateg = "DIFFERENT"
.Range.InsertAfter (SubjCateg & vbCrLf)
End With
But all the headers come out as "CLASSICS"! Don't seem
logical to me....
Dave