getting file path

G

Guest

In a template, How can I get the full file path of a document?
I can get the document name and the template but, would like to get the path.

Thanks,
Bryan
 
J

Jim Rech

A workbook has no path until it is saved. The path of the templates folder
can by gotten from this :

Application.TemplatesPath

--
Jim
| In a template, How can I get the full file path of a document?
| I can get the document name and the template but, would like to get the
path.
|
| Thanks,
| Bryan
 
G

Guest

I got it.
Using the following code in Normal.dot template
'
Dim fFname As String
With ActiveDocument
fFname = .Path
End With
'
Thanks,
Bryan
 

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

Similar Threads


Top