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.
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.