How to kill an addin.

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,334
I have the following code:
AddinTitle = "ACME"
AddIns(AddinTitle).Installed = False
Kill Application.UserLibraryPath & AddinName
This works up to a point, but the ACME addin still appears in the Addins list. Sure it goes when you try to tick it, but I would like all trace of the addin to disappear after the code has been run. Is this possible?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You could try using SendKeys to dismiss the dialog that appears when you try to instal a non-existent Add-In.
 
Upvote 0
Thanks for that Andrew. I have incorporated send keys to do the equivalent of Alt-t i, but how do I then select the correct Addin? It seems that there is still some human intervention required.
 
Upvote 0
Hi Andrew,

That looks like a good suggestion, but I can't make it work. After killing the addin I have the code:
SendKeys ("%t")
SendKeys ("i")
AddIns(AddinTitle).Installed = True
SendKeys "{ENTER}"

Then when I look at my addins list, its still there. Can you see if I am doing anything wrong?
 
Upvote 0
It seems that programmatically trying to install a non-existent Add-In doesn't fail and cause the dialog to appear. So I think you are out of luck.
 
Upvote 0
Thanks for you help Andrew.

It is very much appreciated. I guess if you can't make it work I might as well stop trying.
 
Upvote 0

Forum statistics

Threads
1,203,460
Messages
6,055,553
Members
444,796
Latest member
18ecooley

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top