Microsoft KB Archive/826828

= How to add an ActiveX control to a slide in PowerPoint 2003 =

Article ID: 826828

Article Last Modified on 1/12/2006

-

APPLIES TO


 * Microsoft Office PowerPoint 2003

-



Notice
For a Microsoft PowerPoint 2002 version of this article, see 291875



IN THIS TASK

 * SUMMARY
 * Step A: Add the ActiveX Control to a Slide in PowerPoint
 * Step B: Add Script to the ActiveX Control
 * Add Macro Code for a Control to Be Used in PowerPoint (Optional)
 * Add a Web Script for a Control to Be Used on a Web Page



SUMMARY
This step-by-step article describes how to add an ActiveX control to a slide in PowerPoint 2003. An ActiveX control is a control, such as a button or check box, that you can use to run macros or scripts that automate a task. You can write macros for the control in Microsoft Visual Basic for scripts in Microsoft Script Editor.

back to the top



Step A: Add the ActiveX Control to a Slide in PowerPoint
 In PowerPoint, open the presentation where you want to add an ActiveX control. On the View menu, point to Toolbars, and then click Control Toolbox. In the Control Toolbox, click the button for the control that you want to add, and then click the location where you want the control to appear in your presentation. If you are adding a check box, text box, command button, option button, list box, combo box, toggle button, or label, add the text that you want to appear on the control. To do so:  Right-click the control that you added to your presentation. Point to the name of the object, click Edit, and then type the text that you want to appear on the control.</li> When you are finished adding text, press ESC.</li></ol> </li></ol>

Add Macro Code for a Control to Be Used in PowerPoint (Optional)

 * 1) Click the control, and then click View Code in the Control Toolbox.
 * 2) In the Microsoft Visual Basic Editor, write your macro code.
 * 3) When you finish writing the macro, click Close and Return to Microsoft PowerPoint on the File menu.

Note For information about writing macro code, see Microsoft Visual Basic Help.

Add a Web Script for a Control to Be Used on a Web Page

 * 1) On the Tools menu, point to Macro, and then click Microsoft Script Editor.
 * 2) In Microsoft Script Editor, write your script. Use the control ID to handle events for the control.
 * 3) On the File menu, click Exit to return to Microsoft PowerPoint.

Additional query words: PPT2003 Off2003

Keywords: kbhowto kbtoolbar kbmacro kbprogramming kbslideshow KB826828

-

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

© Microsoft Corporation. All rights reserved.