Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default unload an add-in from an Macro


sure we can enable a macro by click tools=add-ins=click addin name an
ok
But does any Excel expert here knows how can I unload the add-ins fro
a vba macro?
Thanks :cool

--
lang047
-----------------------------------------------------------------------
lang0477's Profile: http://www.excelforum.com/member.php...fo&userid=2397
View this thread: http://www.excelforum.com/showthread.php?threadid=37597

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unload an add-in from an Macro

From help on the Installed property of the addin object:

Set a = AddIns("Solver Add-In")
If a.Installed = True Then
MsgBox "The Solver add-in is installed"
Else
MsgBox "The Solver add-in is not installed"
End If

so set the installed property to false

--
Regards,
Tom Ogilvy


"lang0477" wrote in
message ...

sure we can enable a macro by click tools=add-ins=click addin name and
ok
But does any Excel expert here knows how can I unload the add-ins from
a vba macro?
Thanks


--
lang0477
------------------------------------------------------------------------
lang0477's Profile:

http://www.excelforum.com/member.php...o&userid=23975
View this thread: http://www.excelforum.com/showthread...hreadid=375972



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default unload an add-in from an Macro

addins("myAddin").installed=false

--
HTH

Bob Phillips

"lang0477" wrote in
message ...

sure we can enable a macro by click tools=add-ins=click addin name and
ok
But does any Excel expert here knows how can I unload the add-ins from
a vba macro?
Thanks


--
lang0477
------------------------------------------------------------------------
lang0477's Profile:

http://www.excelforum.com/member.php...o&userid=23975
View this thread: http://www.excelforum.com/showthread...hreadid=375972



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default unload an add-in from an Macro


Good afternoon lang0477

This should do the trick:

Sub Remove_Add-In()
On Error Resume Next
AddIns("MyAdd-In").Installed = False
End Sub

Short and sweet.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=375972

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default unload an add-in from an Macro


excellent, thanks guys :

--
lang047
-----------------------------------------------------------------------
lang0477's Profile: http://www.excelforum.com/member.php...fo&userid=2397
View this thread: http://www.excelforum.com/showthread.php?threadid=37597

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
Unload all addins in VBA arne Excel Programming 8 January 27th 05 06:53 PM
Unload the form on esc key Papou Excel Programming 0 August 10th 04 05:15 PM
form won't unload inquirer Excel Programming 1 May 26th 04 09:55 AM
"Unload" selection after running macro? Ed[_9_] Excel Programming 3 January 21st 04 03:17 PM
Unload Me Chip Pearson Excel Programming 0 September 5th 03 12:56 AM


All times are GMT +1. The time now is 11:29 PM.

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

About Us

"It's about Microsoft Excel"