| Applies to |
| Microsoft Office PowerPoint® 2003 |
| Microsoft PowerPoint® 2002 |
Problem
I created a Microsoft Visual Basic® for Applications macro that I often use when creating new presentations, but every time I want to use this macro, I have to copy it into my presentation or run the macro from the Tools menu.
Solution
To add a button for a macro to a toolbar, follow these steps:
- Open the presentation that contains the macro. If you have just added a macro to your current presentation, save your presentation. For this procedure to work, your file must be saved before you create the button.
- On the Tools menu, click Customize.
- Click the Commands tab, and then under Categories, click Macros.
- In the Commands list, drag the name of your macro to one of your toolbars. This adds a button to the toolbar to run the macro.
- Click Close.
Note Microsoft PowerPoint stores macros in presentations. When you click this button, the presentation that contains the macro opens in the foreground. If you delete or rename the presentation that contains the macro, the button stops working.
See Also
Change a picture on a button
Delete a button or menu command
Restore original settings for buttons, commands, or toolbars