Quick question on Add-in

S

Shuvro Basu

Hi All,

I need to create an add-in that will be executed when the user selects
the add-in from the list under Tools--->Add-ins in Excel. So far so
good. Now what I need this add-in to do is add a menu option in the
main excel menubar when it gets installed and show couple of options.
Ideally it will run a userform. So when the user closes the userform
the add-in needs to uninstalled and the menu deleted. Also if the user
selects an exit option from the new menu created by the add-in, it
should unload the userform and delete the menu. I need to have the code
to create the menu from the add-in at run time and also the code to
disable the menu when the add-in is unloaded. Also any clue to delete
the menu when the userform is terminated will be appreciated.

Thanks.
 
H

Harald Staff

Hi

See
http://www.j-walk.com/ss/excel/tips/tip53.htm
for code. Call this code from the Thisworkbooks' Open and Close events
(allows you also to run the addin as a regular opened file), or the
AddinInstall / AddinUninstall events if that is important (my 0.02 -it
should'nt be important :)

HTH. Best wishes Harald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top