Microsoft KB Archive/222799

= PPT2000: How to Add a Macro to a Toolbar =

Article ID: 222799

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft PowerPoint 2000 Standard Edition

-



This article was previously published under Q222799





SUMMARY
If you create a Microsoft Visual Basic for Applications macro (Sub procedure) that you want to use with more than one presentation, you can add a button to one of the PowerPoint toolbars to run the macro.



MORE INFORMATION
To add a button for a macro to a toolbar, follow these steps:
 * 1) 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.
 * 2) On the Tools menu, click Customize.
 * 3) Click the Commands tab.
 * 4) Click Macros in the Categories list.
 * 5) Drag the name of your macro from the Commands list and drop it on one of your toolbars. This adds a button to the toolbar to run the macro.
 * 6) Click Close.

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

Additional query words: 9.00 ppt9 vba vbe ppt2k powerpt vba2k ppt9.0 ppt2000 program programming sharing copying macro button code module form

Keywords: kbfaq kbhowto kbmacro kbprogramming kbui KB222799

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.