View Single Post
  #4  
Old May 29th, 2008, 11:02 PM posted to microsoft.public.excel.misc
ann
external usenet poster
 
Posts: 462
Default create a button in spreadsheet

here's the vb editor:

Private Sub ReportCompleted_Click()
Call Macro3
End Sub

when i click the button, it does nothing, i get the 4 arrow when i hover
over it. help.

"FSt1" wrote:

hi
if 2003 then
on the menu bar....
viewtoolbarscontrol toolbox. (you can use the forms button but i recommend
the control toolbox button.)
mouse over the controls untill you find command button. click it then click
the sheet and drag to size the button on the sheet.
right click the button and click view code.
Private Sub CommandButton1_Click()
call yourmacroname
End Sub
close the vb editor
right click the button again. click properties.
here you can set button caption, background color, font color and other
properties.
when done close the property box.
mouse over the control toolbar again and click exit design mode. close the
toolbar.

Button should be live and ready to go.

regards
FSt1

"Ann" wrote:

i have just built a macro. how do i create a button in the spreadsheet to
run the macro? for instance, press button and the macro will run, putting in
the answer in the field next to the button?