How do I create a button, place it in the spreadsheet and assign a pre-existing macro to it? Currently I'm using a [ctrl + key] to run the macro, but I want to make it easier for others to use.
How do I create a button, place it in the spreadsheet and assign a pre-existing macro to it? Currently I'm using a [ctrl + key] to run the macro, but I want to make it easier for others to use.
just get a button from the forms tool bar the first thing youll see as you do it is assign macro
or get a command button from the control toolbox
right click it view code
then just put your macro name like this (where mymacro1 is the name of your existing macro)
edit the button label as you see fit in commandbutton object![]()
Please Login or Register to view this content.
then click the triangle thingy in the left hand side of the command tool bar to exit design mode
Last edited by martindwilson; 10-21-2010 at 06:54 AM.
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Perfect! Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks