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