2 quickies

L

Lucas Karpiuk

i need to return the full path and file names of:

1. the active document
2. the current document template (normal.dot)

thanks!
 
J

Jean-Guy Marcil

Lucas Karpiuk was telling us:
Lucas Karpiuk nous racontait que :
i need to return the full path and file names of:

1. the active document

MsgBox ActiveDocument.FullName
2. the current document template (normal.dot)

MsgBox ActiveDocument.AttachedTemplate.FullName

Why do you assume that the current document template is Normal.dot?
In that case, try:

MsgBox Application.NormalTemplate.FullName

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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