2016 SOLIDWORKS Help Assigning a Macro to a Toolbar Button
You can assign a macro to a button, choose a bitmap image for the button, and place the button on any toolbar. With a document open, click Tools > Customize, or rightclick in the window border and click Customize. In the Customize dialog box, on the Commands tab, under Categories, select Macro. Under Buttons, drag New Macro Button to any toolbar in the SOLIDWORKS window.