Open the edition view, and from the Toolbars item select "Control Toolbox"
This will open a toolbar
Select the "Command button" -it's the only one that looks like a button-
"Draw" the button by making a box anywhere on the spreadsheet where you want
the button to be.
Once it's created comes the "tricky part"
Right click on the button and select "view code"
Once it opens the VBA window copy the code from your macro -possibly on the
modules of your "personal.xls" workbook- and paste it into the blank space
under: "Private Sub CommandButton1_Click()" window on the workbook where you
want it inplanted.
-Be aware that this button will only run when you are using the workbook and
will not be stored on your personal.xls workbook where excel by default save
other macros.
Remove any extras "end sub" statements repeated at the end of the macro code
delete the name that you originally have for the macro and leave only the
button name.
close the vba window and save the spreadhseet.
test it.
Phil Wagner said:
Rod - I wanted the button to be in the spreadsheet, not on the toolbar.
How do you do that??
TIA