LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Use Toolbar Button to Toggle Addin

Lonnie - thanks for ideas.

Bob, very slick, brilliant use of code.

Thanks to you both. Rob

"Bob Phillips" wrote in message
...
How about simply

With Application.Addins("addin name")
.Installed = Not .Installed
End With

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Rob" wrote in message
...
Hi, Is it possible to use VAB to load an addin via clicking a custom

button
on the toolbar but if the addin is already loaded i.e. menu item showing,
unload the addin.

I tried the following without any luck other than it unloads the addin
but
does load it

Sub load myaddin()
if application.addins("addin name") is nothing then
addins("addin name").installed = true
Else
addins("addin name").installed = False
End if
End sub








 
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
Need to Use 1 Button to toggle On or Off Jim May Excel Discussion (Misc queries) 2 December 1st 07 08:01 PM
Toolbar Toggle Stan Brown Excel Discussion (Misc queries) 0 April 28th 07 11:42 PM
Auto Filter Toolbar Button Does not Toggle Pastel Hughes Excel Discussion (Misc queries) 2 October 26th 06 09:25 PM
Toggle button keithl816 Excel Discussion (Misc queries) 2 November 21st 05 09:16 PM
How do I Add an Addin to Toolbar Xispo Excel Programming 1 November 12th 03 09:57 PM


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