Apply code to Icon

  • Thread starter Thread starter Gator
  • Start date Start date
G

Gator

How can I take some code I have on one worksheet that does formatting and
apply it to an icon that will display in the toolbar every time I open Excel
and every workbook?
 
Place the code into your Personal.xls which will load hidden each time Excel is
started. Macros will be available for all open workbooks.

OR into a new workbook which you then save as an Add-in.

Load through Tools>Add-ins and it will remain active for all open workbooks.

I either case, assign the macro to a button through

Tools>Customize>Commands>Macros. Drag the Smiley Face to your Toolbar and

right-click and "Asign Macro".

Note: you can edit the name and image of the button.


Gord Dibben MS Excel MVP
 
You mean assign the macro to a button?

Right-click on the button and "Assign Macro"

If the macro is stored in an add-in you must type in the name of the macro.

If in Personal.xls just select from the dialog and OK


Gord
 

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