Insert File Name & Path

  • Thread starter Thread starter Joe Gimma
  • Start date Start date
J

Joe Gimma

Is there a way to automatically update the file name and
path field when saving a document in Word?

WordPerfect did this dynamically each time the document
was saved and the name was changed.

Thanks >> Joe
 
Insert a { FILENAME \p } field where you want the filename and path to
appear. The field is updated automatically each time the document is
opened or printed. The field can also be updated manually by selecting
it and pressing F9.
 
The problem is when the doc is opened, revised and
then "saved as xxxx Rev x.doc".

I will check on the field update when the doc is printed.
The users may be doing something wrong. The hardcopy they
have showed me has the original file name, not the updated
("save as") name.

Best >> Joe
-----Original Message-----
I think we might need more information here. What file
name and path? Do you have this in the header/footer of
the document?
 
Just ran a few tests.

I must be doing something wrong. The only time the File &
Pathname auto-text changes on the page is when I manually
right click on it and select "update field".

Printing, opening or closing the doc does not change the
entry on the page.

Do we need to add a macro to our template?

Thanks >> Joe
-----Original Message-----
I think we might need more information here. What file
name and path? Do you have this in the header/footer of
the document?
 
Put this in a header or footer.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
The filename field should automatically update in Word 97 and 2000, but
not in Word 2002 or 2003. If you're using one of the newer versions,
you can add an autoopen macro to your document to update the fields on open.
 
I would suggest adding the autoopen macro to the document *template* rather
than the document to avoid macro security issues.
For this issue a simple macro like:

Options.UpdateFieldsAtPrint = True
Application.ScreenUpdating = False
PrintPreview = True
PrintPreview = False
ActiveDocument.ActiveWindow.View.Type = wdPrintView
Application.ScreenUpdating = True

will do the trick

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

My web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>><
 
Back
Top