PPT: How to Add a Macro to a Toolbar

Last reviewed: February 5, 1998
Article ID: Q158896
The information in this article applies to:
  • Microsoft PowerPoint 98 Macintosh Edition
  • Microsoft PowerPoint 97 for Windows

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: 97 8.00 ppt8 vba vbe visual basic tips&tricks ppt97
sharing copying macro button sharing code module form macppt 98
Keywords : kbmacro kbprg kbui kbpptvba kbfaq
Version : WINDOWS:97; MACINTOSH:98
Platform : MACINTOSH WINDOWS
Hardware : MAC x86
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.