Tuesday 17 March 2009

Assigning VBScript Macros to Toolbar Buttons or Key Sequences


If you assign a macro to a toolbar button or key sequence, you can run the macro by clicking the button or pressing the assigned keys.

To assign a macro to a toolbar button

1. On the Tools menu, click Customize.

2. Click the Commands tab.

3. In the Category box, click Macros.

4. From the Commands box, drag the macro's name to the toolbar where you want a button for the macro.

5. In the Button Appearance dialog box, select an image for the toolbar button, and then click OK.



To assign a macro to a key sequence

1. On the Tools menu, click Customize.

2. Click the Keyboard tab.

3. In the Category box, click Macros.

4. In the Commands box, select the macro you want to assign.

5. Click in the Press new shortcut key box.

6. Press the key sequence you want to use for the macro.

7. Click the Assign button.

No comments: