File path in Vista Word

D

dcurrier

I want to include the file path in a footer in Vista Word - but cannot find
it. Was able to do it in Excel - but not Word.
 
G

Graham Mayor

There is no such thing as Vista Word! Vista is an operating system that will
run any Word version.
Assuming you mean Word 2007, insert a filename field in the footer.
Insert > Document Parts > Field > Filename
or
Save the inserted field as an autotext entry
or
Use a macro to insert the filename

Sub InsertFilenameInFooter()
Dim sFileName As String
With ActiveDocument
If Len(.Path) = 0 Then
.Save
End If
sFileName = .FullName
End With
Selection.EndKey Unit:=wdStory
ActiveWindow.ActivePane.View.SeekView = _
wdSeekCurrentPageFooter
With Selection
.ParagraphFormat.Alignment = _
wdAlignParagraphRight
.TypeText Text:=sFileName
.EndKey Unit:=wdStory
End With
With ActiveWindow.ActivePane.View
.SeekView = wdSeekMainDocument
End With
End Sub

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


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
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