Group:  Microsoft Word ยป microsoft.public.word.vba.addins
Thread: Detecting addins that are loaded.

Geek News

Detecting addins that are loaded.
"Ian B" <ian[ at ](TakeOut)docspro.co.nz> 11/20/2008 5:50:54 AM
Hi

As a background I have code which returns the path of a template in the
"addins" collection.
This works fine, but to be more specific I only want the path if the
template is also loaded.

Code snip straight from Help file (Word 2003)
~~~~~~
If AddIns("Dot1.dot").Installed = True Then _
StatusBar = "Dot1.dot is loaded"
~~~~~~
This returns Error 5941, "The requested member of the collection does not
exist"

Can anyone assist please. It must be an environment issue, help files are
not often this wrong.
There are no missing References.

Any ideas much appreciated.

TIA

Ian B


Re: Detecting addins that are loaded.
Cindy M. <C.Meister-C[ at ]hispeed.ch> 11/20/2008 10:04:31 AM
Hi Ian,

[Quoted Text]
> As a background I have code which returns the path of a template in the
> "addins" collection.
> This works fine, but to be more specific I only want the path if the
> template is also loaded.
>
> Code snip straight from Help file (Word 2003)
> ~~~~~~
> If AddIns("Dot1.dot").Installed = True Then _
> StatusBar = "Dot1.dot is loaded"
> ~~~~~~
> This returns Error 5941, "The requested member of the collection does not
> exist"
>
Try using the complete file path, rather than docName.extension.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

Re: Detecting addins that are loaded.
"Ian B" <ian[ at ](TakeOut)docspro.co.nz> 11/20/2008 7:01:45 PM
Thanks Cindy.

That fixed the problem.

Cheers
Ian B

"Cindy M." <C.Meister-C[ at ]hispeed.ch> wrote in message
news:VA.00001400.0a647cf2[ at ]vistapc...
[Quoted Text]
> Hi Ian,
>
>> As a background I have code which returns the path of a template in the
>> "addins" collection.
>> This works fine, but to be more specific I only want the path if the
>> template is also loaded.
>>
>> Code snip straight from Help file (Word 2003)
>> ~~~~~~
>> If AddIns("Dot1.dot").Installed = True Then _
>> StatusBar = "Dot1.dot is loaded"
>> ~~~~~~
>> This returns Error 5941, "The requested member of the collection does not
>> exist"
>>
> Try using the complete file path, rather than docName.extension.
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net