The only way to show automatically what the filename is in the field, is to
save the document before adding the field.
The field will not update automatically!
Put the following macro in the document template (not normal.dot for reasons
already mentioned by Suzanne) and it will force a save and an update to the
field in the footer when the new document is created.
Sub AutoNew()
Dim oField As Field
Dim oSection As Section
Dim oFooter As HeaderFooter
With ActiveDocument
If Not .Saved Then
.Save
End If
For Each oSection In ActiveDocument.Sections
For Each oFooter In oSection.Footers
If oFooter.Exists Then
For Each oField In oFooter.Range.Fields
oField.Update
Next oField
End If
Next oFooter
Next oSection
End With
End Sub
Alternatively intercept the filesave and filesaveas routines to add the
extra update code after saving.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>