View Single Post
  #5   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Anyway to get just the path without the filename?

Not with fields, but it is simple enough to achieve with a macro

Sub InsertPath()
With ActiveDocument
If Len(.Path) = 0 Then .Save
Selection.TypeText .Path & "\"
End With
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



Sesquipedalian Sam wrote:
I can use the Filename field with the \p switch to get the filename
including the path ({FILENAME \p }).

Is there any way to get just the path without the filename?