S
sals
Hi,
I have a document that consists of section and page breaks. I'm using
this code to insert a page number footer onto every page. But on the
pages where the content of the document goes to the bottom of the
page, the footer(page number) is not showing up.
Thanks in advance.
_______________________________________________________
Sub insertFooter()
Dim mySCTN As Section
For Each mySCTN In ActiveDocument.Sections
With ActiveDocument.Sections(mySCTN.Index).Footers _
(wdHeaderFooterPrimary)
.PageNumbers.Add _
PageNumberAlignment:=wdAlignPageNumberRight
End With
Next mySCTN
End Sub
I have a document that consists of section and page breaks. I'm using
this code to insert a page number footer onto every page. But on the
pages where the content of the document goes to the bottom of the
page, the footer(page number) is not showing up.
Thanks in advance.
_______________________________________________________
Sub insertFooter()
Dim mySCTN As Section
For Each mySCTN In ActiveDocument.Sections
With ActiveDocument.Sections(mySCTN.Index).Footers _
(wdHeaderFooterPrimary)
.PageNumbers.Add _
PageNumberAlignment:=wdAlignPageNumberRight
End With
Next mySCTN
End Sub