Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Remove AddIn from list

I was looking for some code to remove an AddIn from the AddIn Manager List
after it has been uninstalled and killed (or AddIn moved to another
location). I noticed that on searching this newsgroup that I'm not the only
one after this sort of automation.

I managed to come up with this code after looking at other attempts (see
http://tinyurl.com/nxxmt for my main inspiration) which should remove EVERY
AddIn that is no longer valid. I hope it is helpful.

- - - - - - - -

Sub ClearAddinRegister()

Dim MyCount As Long
Dim GoUpandDown As String

'Turn display alerts off so user is not prompted to remove Addin from list
Application.DisplayAlerts = False

Do
'Get Count of all AddIns
MyCount = Application.AddIns.count

'Create string for SendKeys that will move up & down AddIn Manager List
'Any invalid AddIn listed will be removed
GoUpandDown = "{Up " & MyCount & "}{DOWN " & MyCount & "}"

Application.SendKeys GoUpandDown & "~", False
Application.Dialogs(xlDialogAddinManager).Show

'Continue process until all invalid AddIns are removed since
'this code can only remove one at a time.
Loop While MyCount < Application.AddIns.count

Application.DisplayAlerts = True

End Sub

- - - - - - - -

Cheers!

Richard Reye

"Never argue with an idiot. They'll bring you down to their level then beat
you with experience" - someone
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 addin available from list Vacation's Over Excel Programming 1 August 10th 05 02:22 PM
List all Addin Project Name Richard Reye Excel Programming 1 April 11th 05 06:44 AM
How to programmatically remove an AddIn (xla) AndyB Excel Programming 1 July 6th 04 06:38 AM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM


All times are GMT +1. The time now is 04:20 PM.

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"