Document Title and location

  • Thread starter Thread starter Colin
  • Start date Start date
C

Colin

Hi all,

How can I have Word 2007 automatically show the file name and it's location
as a footnote on all documents ? Many thanks.

Regards Colin.
 
The most reliable method is probably to use a macro eg

Sub InsertFilenameInFooter()
Dim iSec As Integer
Dim rFooter As Range
With ActiveDocument
If Len(.Path) = 0 Then .Save
iSec = .Sections.Count
Set rFooter = .Sections(iSec).Footers(wdHeaderFooterPrimary).Range
rFooter.InsertAfter vbCr & .FullName
With rFooter.Paragraphs(rFooter.Paragraphs.Count)
.Alignment = wdAlignParagraphRight
With .Range
.Font.name = "Arial"
.Font.Size = 8
End With
End With
End With
End Sub

http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Hi Graham,

Thans for the speedy reply. I've never used VB before so although it looks a
little daunting, I'll give it a try. Thanks for your help.

Regards Colin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top