i need to use a visual basic program wich add a button in a excel and its script.


I know to insert the button :

ActiveSheet.OLEObjects.Add (classType:="Forms.CommandButton.1", Link:=False _
, DisplayAsIcon:=False, Left:=izq, Top:=alto, Width:=60, Height:= _
20.75).Select


i need to know insert the script
sub command1_click()
end sub
i dont know how?

thx