Word footers, insert filename and path

N

nemo2

W2K, Word 2003. The Header and Footer dialog box (View/Header and Footer)
has a Customize button. I want to add a button that puts the filename and
path of the document in the Footer, but I can't find anything in the
Customize dialog that pertains to filename or path. Under what heading might
it be hiding?
Thanks.
 
D

Doug Robbins - Word MVP

I am not sure what you mean by a "Customize" button, there isn't/hasn't
been such a button on any of the Headers and Footers toolbars that I have
seen in any version of Word for WIndows. There is however an Autotext
pulldown on the Headers and Footers toolbar that contains a Filename and
Path item that will do what you want.

Alternatively, insert a { FILENAME \p } field either from the Insert>Field
dialog or by use Ctrl+F9 to insert the field delimiters { } and type
FILENAME \p inside them. Use Alt+F9 to toggle off the field codes.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
P

Pat Garard

G'Day Nemo,

Record a Macro to:
Insert>Field
"Filename" (select)
"Add path to filename" (tick)

It will look like:
Sub AddFullFileName()
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:=
_
"FILENAME \p ", PreserveFormatting:=True
End Sub

Customise the H & F Toolbar by adding a button that executes this macro.

It will be inserted in the Header or Footer that has focus.

The macro can be enhanced to control justification etc to your taste.
--
Regards,
Pat Garard
Australia

______________________________________
 
P

Pat Garard

G'Day Doug,

Word Xp (2002):
At the right hand end of the 'title bar' of the H & F toolbar
there is a small 'down arrow':
__________________________
:Footer____________________v |________________
|Add or Remove Buttons v | Header and Footer > |
---------------------------| Customize ... |
---------------------
-
--
Regards,
Pat Garard
Australia

______________________________________
 

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