View Single Post
  #4  
Old April 26th, 2004, 08:17 PM
nemo2
external usenet poster
 
Posts: n/a
Default Word footers, insert filename and path

Thanks a lot to both!

"Pat Garard" apgarardATbigpondPERIODnetPERIODau wrote in message
...
G'Day Nemo,

Record a Macro to:
InsertField
"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

______________________________________