Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a button/toolbar to an Add-in

Status
Not open for further replies.

Cage

MIS
Aug 25, 2002
50
0
0
CA
This is probably very easy but I cannot seem to add a button/toolbar to an add-in. I have written code for an addin and would like to add a button in order to run the macro, so that I can then email the addin and it will install on someone elses machine.

Any ideas?

TIA Cage
 
Hi Cage,

To create a toolbar you Add to the CommandBars Collection.
To create a toolbar button you Add to the Controls Collection of a Toolbar.

You would normally put the code for this in the Workbook_Open Event, possibly with corresponding code to remove the toolbar in the Workbook_BeforeClose Event.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at [url=http://www.vbaexpress.
 
It's available in the FAQs for this forum,


images
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top