How to: Assign a Macro to a Toolbar Button
Visual Studio allows you to access a macro more easily by assigning it to a toolbar button.
Assigning a Macro to a Toolbar Button
Choose Customize from the Tools menu.
Choose the Commands tab.
Click the Toolbar radio button and select the target toolbar from the drop down list.
Click the Add Command… button.
Select Macros in the Categories list.
Select the desired macro from the Commands list, and then click OK.
Click Modify Selection and choose the appropriate commands to modify the appearance of the button, such as renaming it, assigning an image to it, and so on.