Disable COM Addin

V

Venu Gopal

Hi,


I have a COM Add-in which works with CommandBars by Enabling and
Disabling them. The code works fine.


But I am concerned if there is another COM Add-in which does the
similar job of enabling and disabling commandbars. So in that case,
what I have done to commandbars may be undone by another Add-in.


How do I disable other Add-ins when my add-in is running.


I have used the following code


For Each addin In App.COMAddIns
If Not addin.Description = "Test Add-in" Then '
"Test Add-in" is the description of my Addin
addin.Connect = False
End If
Next


But this dont seem to work. Can anybody help.


Thanks,
Venu
 

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