how automatically print file address at bottom of document

  • Thread starter Brian new to MSWord 2007
  • Start date
B

Brian new to MSWord 2007

I am new to Office 2007. I really need to organize my documents. I have seen
documents where the file address is printed at the bottom of the page. This
is what I want to know how to do.
Help!
 
G

Graham Mayor

Having saved the file, insert a filename field in the footer.
or
You could use a macro attached to a button on the QAT (Quick Access Toolbar)
to insert the filename and path eg

Sub InsertFilenameFooter()
Dim sFileName As String
Dim oFooter As Range
With ActiveDocument
If Len(.Path) = 0 Then
.Save
End If
sFileName = .FullName
End With
Set oFooter =
ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range
With oFooter
.Text = sFileName
.Paragraphs.Alignment = wdAlignParagraphRight
.Font.name = "Arial"
.Font.Size = 8
End With
End Sub

http://www.gmayor.com/installing_macro.htm

Note that this macro will replace the footer content

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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

Top