S
Senad Isanovic
How do I loop through all sections in the doc and set range variable to
footer range wdHeaderFooterFirstPage, wdHeaderFooterPrimary, or
wdHeaderFooterEvenPages. I also need to know that exactly is the difference
between those three constants
If ActiveDocument.Sections.PageSetup.DifferentFirstPageHeaderFooter Then
Set rgeFooter =
sSec1.Footers(wdHeaderFooterFirstPage).Range.Paragraphs(1).Range
Else
Set rgeFooter =
sSec1.Footers(wdHeaderFooterPrimary).Range.Paragraphs(1).Range
End If
footer range wdHeaderFooterFirstPage, wdHeaderFooterPrimary, or
wdHeaderFooterEvenPages. I also need to know that exactly is the difference
between those three constants
If ActiveDocument.Sections.PageSetup.DifferentFirstPageHeaderFooter Then
Set rgeFooter =
sSec1.Footers(wdHeaderFooterFirstPage).Range.Paragraphs(1).Range
Else
Set rgeFooter =
sSec1.Footers(wdHeaderFooterPrimary).Range.Paragraphs(1).Range
End If