Macro will not be assigned to a toolbar button.

B

Bobby

I recorded the installation of a macro to a button on my toolbar but it will not record the assignation of the macro. Is this possible?
Thank's ahead.

Application.CommandBars("Worksheet Menu Bar").Controls.Add Type:= _
msoControlButton, ID:=2950, Before:=24
 
Top