Discussion:
Detecting addins that are loaded.
(too old to reply)
Ian B
2008-11-20 05:50:54 UTC
Permalink
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
Cindy M.
2008-11-20 10:04:31 UTC
Permalink
Hi Ian,
Post by Ian B
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 :-)
Ian B
2008-11-20 19:01:45 UTC
Permalink
Thanks Cindy.

That fixed the problem.

Cheers
Ian B
Post by Cindy M.
Hi Ian,
Post by Ian B
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 :-)
Loading...