I need to distribute a Word tutorial and a test. The test requires a
template I have created. I thought I could use an autoexec macro to save it
to c:\documents and settings\%username%\application
data\microsoft\templates\testtemplate.dot but it seems that %username%
creates an error.

Is there any way I can achieve my aim programatically please?


--
Many thanks

Wicked Wizard

Re: Save to users templates folder by Word

Word
Mon Feb 21 20:38:16 CST 2005

G'day "Wicked Wizard" <dontmailme@anywhere.com>,

The VBA Developers Handbook by Ken Getz et al contains some useful
information on using system paths.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Wicked Wizard reckoned:

>I need to distribute a Word tutorial and a test. The test requires a
>template I have created. I thought I could use an autoexec macro to save it
>to c:\documents and settings\%username%\application
>data\microsoft\templates\testtemplate.dot but it seems that %username%
>creates an error.
>
>Is there any way I can achieve my aim programatically please?


Re: Save to users templates folder by Wicked

Wicked
Tue Feb 22 08:26:45 CST 2005

Being tied to my chair after an operation on my foot, I can't get to the
local bookstore, but I'll order it from Amazon and ask them to send you a
commission!

Excuse my sense of humour please, I actually do have it and failed to find
what I was looking for, but I'll get it out again.

:)

Just getting a reply makes me feel that bit more perky.

WW

"Word Heretic" <myfullname@tpg.com.au> wrote in message
news:sn6l11l9g223aak93cnfleli3iith178kt@4ax.com...
> G'day "Wicked Wizard" <dontmailme@anywhere.com>,
>
> The VBA Developers Handbook by Ken Getz et al contains some useful
> information on using system paths.
>
> Steve Hudson - Word Heretic
>
> steve from wordheretic.com (Email replies require payment)
> Without prejudice
>
>
> Wicked Wizard reckoned:
>
>>I need to distribute a Word tutorial and a test. The test requires a
>>template I have created. I thought I could use an autoexec macro to save
>>it
>>to c:\documents and settings\%username%\application
>>data\microsoft\templates\testtemplate.dot but it seems that %username%
>>creates an error.
>>
>>Is there any way I can achieve my aim programatically please?
>



Re: Save to users templates folder by Jonathan

Jonathan
Tue Feb 22 08:28:18 CST 2005


"Wicked Wizard" <dontmailme@anywhere.com> wrote in message
news:SgoSd.316$fb4.202@newsfe3-gui.ntli.net...
>I need to distribute a Word tutorial and a test. The test requires a
>template I have created. I thought I could use an autoexec macro to save
>it to c:\documents and settings\%username%\application
>data\microsoft\templates\testtemplate.dot but it seems that %username%
>creates an error.
>
> Is there any way I can achieve my aim programatically please?

Options.DefaultFilePath(wdUserTemplatesPath) returns the folder which Word
currently thinks is the user templates folder


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup


Re: Save to users templates folder by Wicked

Wicked
Tue Feb 22 09:04:56 CST 2005

Oh brilliant, thank you! I was just bruising my leg resting my copy of Getz
on it. I am grateful.

WW

"Jonathan West" <jwest@mvps.org> wrote in message
news:uIVAouOGFHA.1924@TK2MSFTNGP14.phx.gbl...
>
> "Wicked Wizard" <dontmailme@anywhere.com> wrote in message
> news:SgoSd.316$fb4.202@newsfe3-gui.ntli.net...
>>I need to distribute a Word tutorial and a test. The test requires a
>>template I have created. I thought I could use an autoexec macro to save
>>it to c:\documents and settings\%username%\application
>>data\microsoft\templates\testtemplate.dot but it seems that %username%
>>creates an error.
>>
>> Is there any way I can achieve my aim programatically please?
>
> Options.DefaultFilePath(wdUserTemplatesPath) returns the folder which Word
> currently thinks is the user templates folder
>
>
> --
> Regards
> Jonathan West - Word MVP
> www.intelligentdocuments.co.uk
> Please reply to the newsgroup