How to add an ActiveX control to a slide in PowerPoint 2003 (826828)



The information in this article applies to:

  • Microsoft Office PowerPoint 2003

Notice

Content Maintenance:12827For a Microsoft PowerPoint 2002 version of this article, see 291875

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

MORE INFORMATION

Step A: Add the ActiveX Control to a Slide in PowerPoint

  1. In PowerPoint, open the presentation where you want to add an ActiveX control.
  2. On the View menu, point to Toolbars, and then click Control Toolbox.
  3. 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.
  4. 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:
    1. Right-click the control that you added to your presentation.
    2. Point to the name of the object, click Edit, and then type the text that you want to appear on the control.
    3. When you are finished adding text, press ESC.

Step B: Add Script to the ActiveX Control

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.

Modification Type:MinorLast Reviewed:1/12/2006
Keywords:kbslideshow kbToolbar kbProgramming kbmacro kbhowto KB826828 kbAudEndUser