Selection.OnAction = "Macro1"
Sub ButtonPlusCode()
ActiveSheet.Buttons.Add(158.25, 43.5, 75.75, 24).Select
Selection.OnAction = "SomeMacro"
End Sub
Sub ButtonPlusCode()
Dim bt As Button
Set bt = ActiveSheet.Buttons.Add(158.25, 43.5, 75.75, 24)
bt.Name = "MyButton"
bt.OnAction = "SomeMacro"
End Sub