Assigning add-in function to custom button

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

Hi, I created a macro and assigned it to a custom button
on the tool bar and it worked fine. Only problem is it
loads the workbook that contains the macro in order to run
it (only once per session of course).
I then saved workbook containing the macro as an add-in
(.xla) and went into add-ins in tool menue and checked my
add-in.
How do I assign a function wthin this add-in to a custom
button?
I tried starting the add-in manager in the vba editor but
it comes up blank.

Any sugestions?
 
With the xla loaded.
tools=>customize
leave the visible,
right click on the button,
choose assign macro

MyXLA.xla!mymacro
 
Thanks Tom, I found that if the xla was selected in the
Tools|Add-ins dialog (ie loaded), then I only had to type
in the name of the macro in the assign macro step below.

Its strange that I can't see any of the add-in macros in
the assign macro dialog. is there a way to fix this?
 
No.

You can just type in the macro name if the name is unique among all the open
workbooks/addins. Usually better to be explicit.
 

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

Back
Top