Close

Results 1 to 3 of 3

Thread: MS Word

  1. #1
    DF Probation Drogo's Avatar
    Join Date
    Oct 2001
    Location
    South West
    Posts
    1,288
    Thanks
    0
    Thanked:        0
    Karma Level
    372

    Default MS Word

    Guys,

    What is the best way to auto insert into a footer the file location for the current file you are working on ?

    ie: o:\corporate\burns\oldmill buy out contract

    Was thinking the best way would be to create a macro ..

    Any thoughts?

  2. #2
    DF VIP Member Shambles's Avatar
    Join Date
    Jul 2004
    Location
    (oYo)
    Posts
    10,564
    Thanks
    0
    Thanked:        0
    Karma Level
    1061

    Default Re: MS Word

    If you mean the field code for the name of the current document, switch the view to footers, then

    Insert>Field..> then select FileName and add \p after the FILENAME field code (for full pathname)

    The field code (when you do shift/F9 or Alt/F9) should look like this

    { FILENAME \p }


  3. #3
    DF Probation Drogo's Avatar
    Join Date
    Oct 2001
    Location
    South West
    Posts
    1,288
    Thanks
    0
    Thanked:        0
    Karma Level
    372

    Default Re: MS Word

    Quote Originally Posted by Shambles View Post
    If you mean the field code for the name of the current document, switch the view to footers, then

    Insert>Field..> then select FileName and add \p after the FILENAME field code (for full pathname)

    The field code (when you do shift/F9 or Alt/F9) should look like this

    { FILENAME \p }

    Great thanks, this works but is there anyway this could be updated at point of save ? and incorporated into a macro ?

    What do you think (see below)

    Sub Footer()
    If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
    ActiveWindow.Panes(2).Close
    End If
    If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
    ActivePane.View.Type = wdOutlineView Or ActiveWindow.ActivePane.View.Type _
    = wdMasterView Then
    ActiveWindow.ActivePane.View.Type = wdPageView
    End If
    ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
    If Selection.HeaderFooter.IsHeader = True Then
    ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
    Else
    ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
    End If
    Selection.Font.Size = 8
    NormalTemplate.AutoTextEntries("Filename and path").Insert Where:= _
    Selection.Range
    Selection.TypeParagraph
    Selection.InsertDateTime DateTimeFormat:="MM/dd/yyyy h:mm am/pm", _
    InsertAsField:=True
    ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
    End Sub
    Last edited by Drogo; 8th November 2006 at 11:45 AM.

Similar Threads

  1. Official word on "green" screen on DVD playback
    By Adit18 in forum Sony Consoles
    Replies: 15
    Last Post: 23rd February 2003, 11:35 AM
  2. Word password remover required
    By oldhamred in forum PC Problems
    Replies: 6
    Last Post: 27th November 2002, 02:00 PM
  3. Ricahrd Whiteley and the C word!
    By brumbino in forum Funny Pictures
    Replies: 2
    Last Post: 25th November 2002, 01:34 AM
  4. So what's the final word with xbox live and modchips?
    By losman2128 in forum Microsoft Consoles
    Replies: 7
    Last Post: 5th October 2002, 07:37 AM
  5. One word comes to mind
    By th3virus in forum The Dog and Duck
    Replies: 16
    Last Post: 5th September 2002, 03:13 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •