Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default remove Add-In?

I have an Add-In that has some code in it to connect to an Oracle database
and retrieve data... that part works fine.

But, at theend of processing, I'd like to not only uncheck it in the AddIns
list, but also remove it from the list altogether.

Is there a way that I can do that in code?

Thanks,
Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default remove Add-In?

from some web searches, it seems what I wanted to do isn't possible without
editing the registry...

in some cases, editing the registry will be denied.

perhaps just un-installing it (unchecking the checkbox in the Add-In List is
good enough)

but, if there are better suggestions, I'm still listening.

thanks.

"mark" wrote:

I have an Add-In that has some code in it to connect to an Oracle database
and retrieve data... that part works fine.

But, at theend of processing, I'd like to not only uncheck it in the AddIns
list, but also remove it from the list altogether.

Is there a way that I can do that in code?

Thanks,
Mark

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default remove Add-In?

Mark,
If you delete the AddIn then you can use this code I found on web sometime
ago (author name unknown so my apologies to him / her) to remove it from the
list.
May not be complete answer to you problem but hopefully give you some ideas.

Sub InvalidAddIns()
Dim lCount As Long
Dim sGoUpandDown As String
'Turn display alerts off so user is not prompted to remove Addin from list
With Application
.DisplayAlerts = False
Do
'Get Count of all AddIns
lCount = Application.AddIns.Count

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

Application.SendKeys sGoUpandDown & "~", 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 lCount < Application.AddIns.Count
.DisplayAlerts = True
End With
End Sub

--
jb


"mark" wrote:

I have an Add-In that has some code in it to connect to an Oracle database
and retrieve data... that part works fine.

But, at theend of processing, I'd like to not only uncheck it in the AddIns
list, but also remove it from the list altogether.

Is there a way that I can do that in code?

Thanks,
Mark

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
how do i remove an excel link that break link won't remove brosull Excel Worksheet Functions 1 June 29th 09 06:34 PM
remove convert/extract the number from'12345.56; ie remove ' sign WAN Excel Worksheet Functions 2 January 10th 08 12:38 PM
How do I remove hyperlink if 'remove' option is disabled Vipul New Users to Excel 1 January 8th 08 02:34 PM
"Add/Remove Rows Code" adds rows on grouped sheets, but won't remove rows. Conan Kelly Excel Programming 1 November 16th 07 10:41 PM
Is there a way to remove numbers w/o remove formulas Annette[_3_] Excel Programming 2 July 23rd 03 07:29 PM


All times are GMT +1. The time now is 03:21 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"