# How To: Assign a Macro to a Toolbar Button

Visual Studio 2005

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. Select Macros in the Categories list.

4. Drag the macro name from the Commands list to the position on the toolbar you want the new button to appear.

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

#### Concepts

Automating Repetitive Actions by Using Macros