Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
asf66 asf66 is offline
external usenet poster
 
Posts: 3
Default inserting file's location in footer


I often get word docs with the file's address inserted in on the bottom of
the page such as the following example:
C:\Documents and Settings\Lenovo User\My Documents\doc name

How do I insert a file's location in the footer of a document?

Thanks-
asf66
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
marysully marysully is offline
external usenet poster
 
Posts: 102
Default inserting file's location in footer

In Office 2003: Click View-Header and Footer. The Header and Footer menu
should appear along with the Header box. Click on the icon "Switch between
Header and Footer" (ninth icon) and the Footer box will appear for you to
type your text. Close box when done. When editing you can simply click on the
footer text and the box will open.

"asf66" wrote:


I often get word docs with the file's address inserted in on the bottom of
the page such as the following example:
C:\Documents and Settings\Lenovo User\My Documents\doc name

How do I insert a file's location in the footer of a document?

Thanks-
asf66

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
marysully marysully is offline
external usenet poster
 
Posts: 102
Default inserting file's location in footer


In Office 2003: Click View-Header and Footer. The Header and Footer menu
should appear along with the Header box. Click on the icon "Switch between
Header and Footer" (ninth icon) and the Footer box will appear for you to
type your text. Close box when done. When editing you can simply click on the
footer text and the box will open.

"asf66" wrote:


I often get word docs with the file's address inserted in on the bottom of
the page such as the following example:
C:\Documents and Settings\Lenovo User\My Documents\doc name

How do I insert a file's location in the footer of a document?

Thanks-
asf66

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default inserting file's location in footer

See "Insert filename and path building block in Word 2007" at
http://office.microsoft.com/en-us/te...002951033.aspx

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"asf66" wrote in message
...

I often get word docs with the file's address inserted in on the bottom of
the page such as the following example:
C:\Documents and Settings\Lenovo User\My Documents\doc name

How do I insert a file's location in the footer of a document?

Thanks-
asf66


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default inserting file's location in footer

See "Insert filename and path building block in Word 2007" at
http://office.microsoft.com/en-us/te...002951033.aspx

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"asf66" wrote in message
...

I often get word docs with the file's address inserted in on the bottom of
the page such as the following example:
C:\Documents and Settings\Lenovo User\My Documents\doc name

How do I insert a file's location in the footer of a document?

Thanks-
asf66




  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default inserting file's location in footer

With a document that contains several sections, there can be several
different footers. You would have to choose which footer(s) you wanted to
insert the field into.

My preferred method would be to use a macro to insert and update the
filename field in the footer. The following macro will insert the filename
and path in each footer of each section of the document after any existing
footer content. It will only insert the field once, and just updates the
field if already present.

Sub InsertFilenameInFooter()
Dim oSection As Section
Dim ofooter As HeaderFooter
Dim oRng As Range
Dim oFld As Field
ActiveDocument.Save
For Each oSection In ActiveDocument.Sections
For Each ofooter In oSection.Footers
Set oRng = ofooter.Range
With oRng
For Each oFld In oRng.Fields
If oFld.Type = wdFieldFileName Then
oFld.Update
Exit Sub
End If
Next oFld
If Len(oRng) 1 Then
.InsertAfter vbCr
End If
.Start = ofooter.Range.End
.End = ofooter.Range.End
.Fields.Add oRng, wdFieldFileName, "\p", False
.ParagraphFormat.Alignment = wdAlignParagraphRight
.Font.Size = 8
.Fields.Update
End With
Next ofooter
Next oSection
ActiveWindow.View.ShowFieldCodes = False
End Sub

Alternatively if you want to insert the filename and path at the end of the
document, the following macro will do that

Sub InsertFilenameAtEnd()
Dim oRng As Range
Dim oFld As Field
ActiveDocument.Save
Set oRng = ActiveDocument.Paragraphs.Last.Range
With oRng
For Each oFld In oRng.Fields
If oFld.Type = wdFieldFileName Then
oFld.Update
Exit Sub
End If
Next oFld
If Len(oRng) 1 Then
.InsertAfter vbCr
End If
.Start = ActiveDocument.Paragraphs.Last.Range.Start
.End = ActiveDocument.Range.End
.Fields.Add oRng, wdFieldFileName, "\p", False
.ParagraphFormat.Alignment = wdAlignParagraphRight
.Font.Size = 8
.Fields.Update
End With
ActiveWindow.View.ShowFieldCodes = False
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



"asf66" wrote in message
...

I often get word docs with the file's address inserted in on the bottom of
the page such as the following example:
C:\Documents and Settings\Lenovo User\My Documents\doc name

How do I insert a file's location in the footer of a document?

Thanks-
asf66



  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default inserting file's location in footer

With a document that contains several sections, there can be several
different footers. You would have to choose which footer(s) you wanted to
insert the field into.

My preferred method would be to use a macro to insert and update the
filename field in the footer. The following macro will insert the filename
and path in each footer of each section of the document after any existing
footer content. It will only insert the field once, and just updates the
field if already present.

Sub InsertFilenameInFooter()
Dim oSection As Section
Dim ofooter As HeaderFooter
Dim oRng As Range
Dim oFld As Field
ActiveDocument.Save
For Each oSection In ActiveDocument.Sections
For Each ofooter In oSection.Footers
Set oRng = ofooter.Range
With oRng
For Each oFld In oRng.Fields
If oFld.Type = wdFieldFileName Then
oFld.Update
Exit Sub
End If
Next oFld
If Len(oRng) 1 Then
.InsertAfter vbCr
End If
.Start = ofooter.Range.End
.End = ofooter.Range.End
.Fields.Add oRng, wdFieldFileName, "\p", False
.ParagraphFormat.Alignment = wdAlignParagraphRight
.Font.Size = 8
.Fields.Update
End With
Next ofooter
Next oSection
ActiveWindow.View.ShowFieldCodes = False
End Sub

Alternatively if you want to insert the filename and path at the end of the
document, the following macro will do that

Sub InsertFilenameAtEnd()
Dim oRng As Range
Dim oFld As Field
ActiveDocument.Save
Set oRng = ActiveDocument.Paragraphs.Last.Range
With oRng
For Each oFld In oRng.Fields
If oFld.Type = wdFieldFileName Then
oFld.Update
Exit Sub
End If
Next oFld
If Len(oRng) 1 Then
.InsertAfter vbCr
End If
.Start = ActiveDocument.Paragraphs.Last.Range.Start
.End = ActiveDocument.Range.End
.Fields.Add oRng, wdFieldFileName, "\p", False
.ParagraphFormat.Alignment = wdAlignParagraphRight
.Font.Size = 8
.Fields.Update
End With
ActiveWindow.View.ShowFieldCodes = False
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



"asf66" wrote in message
...

I often get word docs with the file's address inserted in on the bottom of
the page such as the following example:
C:\Documents and Settings\Lenovo User\My Documents\doc name

How do I insert a file's location in the footer of a document?

Thanks-
asf66



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert the file name/location in the footer of a word doc Collector Dave Page Layout 7 April 10th 09 11:42 PM
How can I get location of the document to print as a footer Dave Microsoft Word Help 1 January 7th 09 05:12 PM
Automaticall add document location in footer? jason Microsoft Word Help 1 December 6th 06 06:51 AM
How can I change the size & location of a picture I am inserting? Linds Microsoft Word Help 1 July 11th 06 10:27 PM
inserting text in an exact location ez2020 Page Layout 6 May 30th 05 08:05 AM


All times are GMT +1. The time now is 08:33 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"