addin conflict problem

G

Gary Hillerson

I've recently discovered that when someone has the SnagIt add-in
installed in Word 2003, my menu gets cut off, and the commands in my
menu can't be accessed.

If I remove the SnagIt add-in, everything is fine, but I'd like to
automatically detect this situation and programmatically work around
it. I'm struggling to figure out how.

I put some debugging code in that traverses the list of addins and
prints out the name of each, but when the Snagit addin is installed,
this code fails when processing that addin with this error:
"Run-time error '5152': Method 'Nam' of object 'AddIn' failed"

Private Sub DisplayAddIns
Dim msg As String

MsgBox = "--- Start of AddIns List ---"
For Each addInObj In AddIns
msg = addInObj.name
if addInObj.installed then
MsgBox msg & vbtab & " is installed"
Else
MsgBox msg & vbtab & " is NOT installed"
End If
Next addInObj
MsgBox = "--- End of AddIns List ---"
End Sub

The code fails in the same way if i change it to only display the name
of installed addins. If I remove the Snagit addin, this code works
fine.

So i don't know how to programmatically discover if Snagit addin is
present, if accessing the addin object is causing an error. Is there
some other test I can use.

Or does anyone know how to avoid these add-in conflicts?

Thanks,
Gary
 
C

Cindy M.

Hi Gary,

You may have solved this by now...

But if you haven't I recommend you contact the software manufacturer.
The folks at Snagit are usually pretty good about helping solve problems
with their software. Be sure to mention which version of Snagit is
giving you problems.
I've recently discovered that when someone has the SnagIt add-in
installed in Word 2003, my menu gets cut off, and the commands in my
menu can't be accessed.

If I remove the SnagIt add-in, everything is fine, but I'd like to
automatically detect this situation and programmatically work around
it. I'm struggling to figure out how.

I put some debugging code in that traverses the list of addins and
prints out the name of each, but when the Snagit addin is installed,
this code fails when processing that addin with this error:
"Run-time error '5152': Method 'Nam' of object 'AddIn' failed"

Private Sub DisplayAddIns
Dim msg As String

MsgBox = "--- Start of AddIns List ---"
For Each addInObj In AddIns
msg = addInObj.name
if addInObj.installed then
MsgBox msg & vbtab & " is installed"
Else
MsgBox msg & vbtab & " is NOT installed"
End If
Next addInObj
MsgBox = "--- End of AddIns List ---"
End Sub

The code fails in the same way if i change it to only display the name
of installed addins. If I remove the Snagit addin, this code works
fine.

So i don't know how to programmatically discover if Snagit addin is
present, if accessing the addin object is causing an error. Is there
some other test I can use.

Or does anyone know how to avoid these add-in conflicts?

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 :)
 

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