Find and use a user's template directory path

P

PiaD

Hi -
I would like to automatically attach a template file named "AutoWork.dot"
when a user is ready to use it. The user has this file stored in their
template directory, wherever that may be. How do I write a macro that finds
a user's MS default template path (there a many users and this may vary
between users), then attaches this .DOT file to the active document?

Thanks so much,
Pia
 
J

Jonathan West

PiaD said:
Hi -
I would like to automatically attach a template file named "AutoWork.dot"
when a user is ready to use it. The user has this file stored in their
template directory, wherever that may be. How do I write a macro that
finds
a user's MS default template path (there a many users and this may vary
between users), then attaches this .DOT file to the active document?

Thanks so much,
Pia

Options.DefaultFilePath(wdUserTemplatesPath) is the property which returns
the path name of the user templates folder.
 

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