Macro to insert file name and path

G

Graham Mayor

NormalTemplate.AutoTextEntries("Filename and path").Insert Where:= _
Selection.Range

uses the default autotext entry filename and path to insert the information
at the cursor.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail [email protected]
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
C

CH

I am able to get my macro to change font size, but not to insert the file name and path. Any suggestions?
 
D

Dave Lett

Are you talking about the name and path of the current document? If so, you can use

ActiveDocument.FullName

HTH,
Dave
 
Top