You could use a macro to place the filename and path in the footer of the
last page e.g. in the following example the macro will save the document if
it is not already saved and add the filename and path, right aligned, in the
footer of the last page of the last section.
If you add to the length of the document after running the macro you will
need to update the fields, to ensure that the filename moves to the last
page again, for which purpose you could use the macro in the following link.
http://www.gmayor.com/installing_macro.htm
which also explains how to install the macros.
If the document already has a footer then this macro may affect the layout
of that footer.
Sub FilenameinLastPageFooter()
With ActiveDocument
If Not .Saved Then
.Save
End If
End With
Selection.EndKey Unit:=wdStory
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
With Selection
.ParagraphFormat.Alignment = wdAlignParagraphRight
.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, _
PreserveFormatting:=False
.TypeText Text:="IF"
.Fields.Add Range:=Selection.Range, Type:=wdFieldPage, _
PreserveFormatting:=False
.TypeText " = "
.Fields.Add Range:=Selection.Range, Type:=wdFieldNumPages, _
PreserveFormatting:=False
.TypeText " "
.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, _
PreserveFormatting:=False
.TypeText Text:="Filename \p"
.EndKey Unit:=wdStory
.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
.Fields.Update
End With
With ActiveWindow.ActivePane.View
.ShowFieldCodes = False
.SeekView = wdSeekMainDocument
End With
End Sub
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>