Add an ActiveX control
- Open the presentation you want to add an ActiveX control to.
- On the View menu, point to Toolbars, and then click Control Toolbox.
- In the Control Toolbox, click the button for the control you want to add, and then click the location where you want the control to appear in your presentation.
- If you're adding a check box, text box, command button, option button, list box, combo box, toggle button, or label, enter the text you want to appear on the control.
- Right-click the control you added to your presentation.
- Point to the name of the object on the shortcut menu (for example, CheckBox Object).
- Click Edit, and then add the text you want to the control.
- When you're finished, press ESC.
- Do one of the following:
Add macro code for a control to be used in PowerPoint
Security vulnerabilities in external files or controls may extend to Web pages that use those items. For example, external style sheets (files with a .css extension), script files (files with a .js extension), custom ASP.NET controls, or other items, may pose a security risk. Be sure your style sheets, add-ins, themes, executables, scripts, controls, or other files come from trusted sources.
-
Select the control, and then in the Control Toolbox, click View Code .
-
In Microsoft Visual Basic Editor, write your macro code.
-
When you finish writing the macro, on the File menu, click Close and Return to Microsoft PowerPoint.
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
Security vulnerabilities in external files or controls may extend to Web pages that use those items. For example, external style sheets (files with a .css extension), script files (files with a .js extension), custom ASP.NET controls, or other items, may pose a security risk. Be sure your style sheets, add-ins, themes, executables, scripts, controls, or other files come from trusted sources.
-
On the Tools menu, point to Macro, and then click Microsoft Script Editor.
-
In Microsoft Script Editor, write your script, using the control ID to handle events for the control.
-
When you finish writing the script, on the File menu, click Exit to return to Microsoft PowerPoint.
-