Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Help and How-to
Search
Search
 
Check for updates: (c) Microsoft
Microsoft Update
 
 
 
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.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Run a macro
 

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:

ShowRun a macro

  1. 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.
  2. On the Tools menu, point to Macro, and then click Macros.
  3. In the Macro name box, click the name of the macro that you want to run, and then do one of the following:

    ShowTip

    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.

ShowRun 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.
  1. 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.).
  2. Right-click the new object to display the shortcut menu (shortcut menu: A menu that shows a list of commands relevant to a particular item. To display a shortcut menu, right-click an item or press SHIFT+F10.).
  3. On the shortcut menu, click Action Settings, and then do one of the following:
  4. If the new object isn't selected, select it again, click AutoShape on the Format menu, and then click the Color and Lines tab.
  5. In the Color box under Fill, click No Fill, and then in the Color box under Line, click No Line.
  6. Repeat these steps for each hot spot you want to create.

ShowTip

To preview how your macro will run from the hot spot you've created, click Slide Show Button image at the lower left of the Microsoft PowerPoint window.

advertisement