J
Julia
I would like to have the following code repeat for all footers in all
sections, but I can't seem to get it right. Can you help? Thank you!
Dim i As Integer
For i = 1 To ActiveDocument.Sections.Count
With ActiveDocument.Sections(i)
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"FILENAME \p ", PreserveFormatting:=True
End With
Next i
I'm trying to insert this field in the footer for all sections - the
existing sections may or may not have text or page numbers in them already.
Thanks for your help!
sections, but I can't seem to get it right. Can you help? Thank you!
Dim i As Integer
For i = 1 To ActiveDocument.Sections.Count
With ActiveDocument.Sections(i)
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"FILENAME \p ", PreserveFormatting:=True
End With
Next i
I'm trying to insert this field in the footer for all sections - the
existing sections may or may not have text or page numbers in them already.
Thanks for your help!