How to add the location of a saved document to the bottom of a pag

  • Thread starter Thread starter Maria
  • Start date Start date
You can insert the FILE NAME field into the footer or wherever you
want the info to appear...and check the optional box to include the
file path, if you also want that info.

For 2003, click Insert > Field > FileName and choose the options you
need.

For 2007, click Insert Tab, Quick Part from the Text group, Field and
do the same...choosing the FileName field w/Path option if needed.

You can manually update the field, after you save/name it, by
selecting the field and hitting F9...or it'll update the next time you
open the file.


Dian D. Chapman
Technical Consultant, Microsoft MVP
MOS Certified Instructor, Editor/TechTrax Ezine
Tech Editor for Word & Office 2007 Bibles
https://mvp.support.microsoft.com/profile/Dian.Chapman

Dian's Soldiers' Angels Blankets
http://www.mousetrax.com/dian/angels.html

Free Word Tricks eBook: http://www.mousetrax.com/books.html
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
Free Computer Tutorials: http://www.techtrax.us
 
Hello,

I have been searching for this all day - thank you!

Is there any way I can set my computer to do this by default?
 
Create a document with the field inserted and save it as a template. Base
your documents on that template. The only snag is that the field does not
update automatically and a new document does not have a name until you name
it..

A simple solution is to use a macro to save the document and insert the
filename at the end.

Sub InsertFileNameAtEnd()
With ActiveDocument
If Len(.Path) = 0 Then .Save
If InStr(1, .Range.Paragraphs.Last.Range.Text, _
".doc") = False Then
.Range.InsertAfter vbCr & .FullName
With .Range.Paragraphs.Last.Range
.Paragraphs.Alignment = _
wdAlignParagraphRight
.Font.name = "Arial"
.Font.Size = 8
End With
Else
.Range.Paragraphs.Last.Range.Text = _
.FullName
End If
End With
End Sub

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

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top