Venu Gopal
2005-05-18 17:05:33 UTC
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
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