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 (e-mail address removed)
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top