A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

File path in Vista Word



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2009, 02:42 PM posted to microsoft.public.word.pagelayout
dcurrier
external usenet poster
 
Posts: 1
Default File path in Vista Word

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.
  #2  
Old April 16th, 2009, 02:50 PM posted to microsoft.public.word.pagelayout
Graham Mayor
external usenet poster
 
Posts: 18,297
Default File path in Vista Word

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



dcurrier wrote:
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.