PDA

View Full Version : [SOLVED:] How to Convert the footers to normal text in same page



Omer
04-30-2015, 02:43 AM
I have tried the below code for inserting footer as <a id="page_1"/>...n


Sub addfootaspage()

Dim k As Integer

For k = 0 To ActiveDocument.Sections.Count
k = k + 1
With ActiveDocument.Sections(k)
.Footers(wdHeaderFooterPrimary).Range.Text = "<a id=""page_" & k & "> "
End With
Next k
End Sub

But inserted as <a id="page_1"/> to all the page, it's not counting the values.

Omer
04-30-2015, 09:37 PM
I am not getting any errors all, for some reason page # is not changing