VB addin to check Word addins are installed

K

K

I am writing a VB/VB.Net addin to check that the global template
addins in Word have not been disabled (usually have been disabled
because Word has crashed). We need to check each time someone opens
Word and re-enable.

I have written a VBA macro that checks for this very successfully (but
if it's disabled because of the crash, it won't run), but when I make
a reference to the Word object model in VB or VB.Net it does not work
the same way.

My addins:

Global.dot - STARTUP
Test1.dot - STARTUP
Test2.dot - STARTUP
Another.dot - My Documents

When I loop through the 'Addins' collection in VBA, it picks up all of
these templates. When I loop through in VB or VB.Net, it only picks
up 'Another.dot' (or any template not stored in the STARTUP folder).

Has anyone seen this before or have any ideas how I can check that the
STARTUP templates are enabled/installed.

Many thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top