Button to execute Add-in

A

Aerojade

I have created an Excel add-in that executes a simple function(pops up a
messagebox). I did this by adding a new Module in the VB editor. How can i
create a custom button in the toolbar to execute this function. PLease help.
 
S

Sheeloo

Excel 2003

Tools->Customize->Toolbars->New
Enter the name you want...
Click on Commands Tab and choose Macros and drag the Custom Button to the
new toolbar then Right Click on the button, choose Assign Macro and pick your
Macra

You can dock the new toolbar anywhere you want...

Assign your macro to the tool bar...
 
G

Gord Dibben

Add-ins do not execute functions.

Add-ins are workbooks that contain macros or functions.

Did you open a new workbook, add a module and stick some code into that
module then save the workbook as an Add-in?

Have you loaded that add-in through Tools>Add-ins?

If so, see the other replies for executing the macro in that add-in.


Gord Dibben MS Excel MVP
 

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