![]() |
#2
|
||||
|
||||
![]()
You cannot insert part of a field, but you can insert the path and filename on two lines with a macro e.g.
Code:
Sub InsertPathAndFilename() With ActiveDocument If Len(.Path) = 0 Then .Save Selection.TypeText .Path & Chr(92) & vbCr & .name End With lbl_Exit: Exit Sub End Sub Code:
& .name Code:
& Left(.name, InStrRev(.name, ".") - 1)
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Publisher '07--default file path | markg2 | Publisher | 0 | 02-15-2014 10:22 AM |
Quickly add file path name to footer | nimblewit | Word | 2 | 05-03-2013 05:17 AM |
![]() |
dedine | PowerPoint | 3 | 01-31-2013 12:55 PM |
![]() |
eliz.bell | Outlook | 2 | 10-29-2011 07:04 PM |
![]() |
Ziggy1 | Word VBA | 1 | 09-29-2006 07:55 PM |