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

  1. Choose Customize from the Tools menu.

  2. Choose the Commands tab.

  3. Click the Toolbar radio button and select the target toolbar from the drop down list.

  4. Click the Add Command… button.

  5. Select Macros in the Categories list.

  6. Select the desired macro from the Commands list, and then click OK.

  7. 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.

See Also

Concepts

Automating Repetitive Actions by Using Macros