| | Help by Product Find help quickly and easily. How-to Resources 2007 Release Learning Resources Support and Feedback Technical Resources | Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.
- Open the presentation you want to add an ActiveX control (ActiveX control: A control, such as a check box or button that offers options to users or runs macros or scripts that automate a task. You can write macros for the control in Microsoft Visual Basic for Applications or scripts in Microsoft Script Editor.) 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.
How?
- 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 (Visual Basic Editor: An environment in which you write new and edit existing Visual Basic for Applications code and procedures. The Visual Basic Editor contains a complete debugging toolset for finding syntax, run-time, and logic problems in your code.), write your macro (macro: An action or a set of actions you can use to automate tasks. Macros are recorded in the Visual Basic for Applications programming language.) 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 (Microsoft Script Editor: Used to add text, edit HTML tags, and edit any Microsoft Visual Basic Scripting Edition (VBScript) code in a data access page. You can also view your page in the Script Editor as it would appear in a Web browser.), write your script (script: A type of computer code used to perform tasks on Web pages, such as incrementing a "number of visitors" counter each time there is a new visitor. Web scripts can be written in several script languages. Scripts do not need to be compiled to be run.), 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.
|