Hi,

I use vba to change the "attached template" value of copied documents to a
new value. However, Word changes the value to "normal.dot" if it doesn't
find the template, but it stores the original value somewhere, cause you can
see it in the document, how can I find this original value through vba ?

thanks in advance
Xavier

Re: Attached template : orginal name by Andra

Andra
Wed Apr 06 08:38:12 CDT 2005

version of Word? Actual code?

Nuyttens Xavier wrote
> Hi,
>
> I use vba to change the "attached template" value of copied documents to a
> new value. However, Word changes the value to "normal.dot" if it doesn't
> find the template, but it stores the original value somewhere, cause you
can
> see it in the document, how can I find this original value through vba ?
>
> thanks in advance
> Xavier



Re: Attached template : orginal name by Nuyttens

Nuyttens
Wed Apr 06 14:10:37 CDT 2005

Word 2003, there's no actual code involved : If you check the template
setting in Word itself, it says the orginal file like
"c:\mydocuments\mytemplate.dot". (Even if it doesn't exist and can't be
used)
But if that template doesn't exist, the "document.Attachedtemplate.Name"
will be "normal.dot".
What I would like to know is if there is a property that stores this
original "faulty" value so I can use it to decide what the actual value has
to be.

greetings
Xavier


"Andra" <andraatlatnetdotlv> schreef in bericht
news:u%238bf3qOFHA.580@TK2MSFTNGP15.phx.gbl...
> version of Word? Actual code?
>
> Nuyttens Xavier wrote
>> Hi,
>>
>> I use vba to change the "attached template" value of copied documents to
>> a
>> new value. However, Word changes the value to "normal.dot" if it doesn't
>> find the template, but it stores the original value somewhere, cause you
> can
>> see it in the document, how can I find this original value through vba ?
>>
>> thanks in advance
>> Xavier
>
>