Kirm

With your permission, we can take this one step at a time... let's first try to enumerate all the user's templates (addins?) to see if we can get a handle to them. Try running this script to see if the template(s) in question show up...

code:

break on cls

$word = olecreateobject("word.application")

if $word

$addins = val("&"+olegetproperty($word,"addins"))

if $addins

$enum = oleenumobject($addins)

if $enum

$addin = oleenumobject($addins,$enum)

if $addin

?"Addins:"

while @error = 0

? olegetproperty($addin,"name")

$= olereleaseobject($addin)

$addin = oleenumobject($addins,$enum)

loop

$= olereleaseobject($addin)

endif

$= olereleaseobject($enum)

endif

$= olereleaseobject($addins)

endif

$= olecallfunc($word,"quit")

$= olereleaseobject($word)

endif

exit


Shawn.

[This message has been edited by Shawn (edited 29 March 2001).]