Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default How to programmatically remove an AddIn (xla)

Is there a clean way to programmatically remove an XLA AddIn in Excel? (eg using VBA, modifying the registry etc)

I can load and install the AddIn using VBA using code somehting like this:

If Application.AddIns("MyAddIn") Is Nothing Then
With AddIns.Add("<MyAddInPath\MyAddIn.xla")
.Installed = True
End With
End If

And I know I can manually remove the entry in the AddIn list by deleting the AddIn .xla file and then seleciting it in the list and answering 'yes' when Excel prompts to remove it, but I would like to automate the uninstall of my app (which includes an Excel AddIn) without requiring the user to do this manually. It appears that there is no 'Remove' method for the AddIns collection.

Any suggestions?

Thanks

AndyB

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default How to programmatically remove an AddIn (xla)

Try something like:
Addins("Solver Add-in").Installed = False


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"AndyB" wrote in message
...
Is there a clean way to programmatically remove an XLA AddIn in Excel? (eg

using VBA, modifying the registry etc)

I can load and install the AddIn using VBA using code somehting like this:

If Application.AddIns("MyAddIn") Is Nothing Then
With AddIns.Add("<MyAddInPath\MyAddIn.xla")
.Installed = True
End With
End If

And I know I can manually remove the entry in the AddIn list by deleting

the AddIn .xla file and then seleciting it in the list and answering 'yes'
when Excel prompts to remove it, but I would like to automate the uninstall
of my app (which includes an Excel AddIn) without requiring the user to do
this manually. It appears that there is no 'Remove' method for the AddIns
collection.

Any suggestions?

Thanks

AndyB



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Addin Rao Ratan Singh Excel Discussion (Misc queries) 2 June 21st 08 05:24 AM
remove name of addin in Tools menu: "Document Project" Kate Excel Discussion (Misc queries) 2 January 9th 07 06:50 PM
Programmatically remove sharing? Anson[_2_] Excel Programming 0 June 14th 04 08:11 PM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM
Programmatically Add Reference` Jean-Paul Viel Excel Programming 0 September 16th 03 02:23 PM


All times are GMT +1. The time now is 07:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"