View Single Post
  #6   Report Post  
Posted to microsoft.public.word.newusers
Sesquipedalian Sam Sesquipedalian Sam is offline
external usenet poster
 
Posts: 126
Default Anyway to get just the path without the filename?

On Sat, 14 Nov 2009 09:45:13 +0200, "Graham Mayor"
wrote:


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


Thank you very much.