| | 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.
Because macros can contain viruses, be careful about running them. Take the following precautions: run up-to-date antivirus software on your computer; set your macro security level to high; clear the Trust all installed add-ins and templates check box; use digital signatures; maintain a list of trusted publishers.
Do one of the following: Run a macro
- Open the presentation that contains the 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.) you want to run.
- On the Tools menu, point to Macro, and then click Macros.
- In the Macro name box, click the name of the macro that you want to run, and then do one of the following:
Tip
If you want to run a different macro while you are in Microsoft Visual Basic Editor (Microsoft Visual Basic Editor: An environment in which you can edit macros that you've recorded and write new macros and Visual Basic for Applications programs.), on the Tools menu, click Macros. In the Macro name box, click the name of the macro that you want to run, and then click Run.
Run a macro from a hot spot on a button, object, or drawing object
You can run a macro from a hot spot (hot spot: An area on an object containing a hyperlink. An entire object can be a single hot spot, or an object can contain multiple hot spots. A picture with hot spots is called an image map.) when you are in slide show view.
- Draw an object to use as a hot spot for an existing button, object (object: A table, chart, graphic, equation, or other form of information. Objects created in one application, for example spreadsheets, and linked or embedded in another application are OLE objects.), or drawing object (drawing object: Any graphic you draw or insert, which can be changed and enhanced. Drawing objects include AutoShapes, curves, lines, and WordArt.).
- Right-click the new object to display the shortcut menu.
- On the shortcut menu, click Action Settings, and then do one of the following:
- If you want to run a 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.) when the button, object, or drawing object is clicked, on the Mouse Click tab, click Run macro, and then select the macro you want to run from the list.
-
If you want to run a macro when you hover the pointer over the button, object, or drawing object, on the Mouse Over tab, click Run macro, and then select the macro you want to run from the list.
- If the new object isn't selected, select it again, click AutoShape on the Format menu, and then click the Color and Lines tab.
- In the Color box under Fill, click No Fill, and then in the Color box under Line, click No Line.
- Repeat these steps for each hot spot you want to create.
Tip
To preview how your macro will run from the hot spot you've created, click Slide Show
at the lower left of the Microsoft PowerPoint window.
|