How do I write a auto insert for file name\path\date etc?

N

Nita

I want to create a macro that inserts the following information: author\file
name\file path\date. I created one in 2003 but for the life of me cannot
figure out how to do an equation or formula necessary to do this.

Help!
 
D

DaveLett

Hi Nita,
I think that you're looking for something like the following:

Dim sInfo As String

With ActiveDocument
sInfo = .BuiltInDocumentProperties("Author") & " \ " & _
.Name & " \ " & .Path & " \ " & Date
End With

Selection.TypeText Text:=sInfo

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