• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Controlling a Macro

If a macro doesn't work exactly the way you want it to, you can fix the problem without re-creating the macro. Instead of recording the macro over again, PowerPoint allows you to debug, or repair, an existing macro so that you change only the actions that aren't working correctly. When you use the Macro Recorder, you are actually writing a program in a programming language called Microsoft Visual Basic. All macros for a particular presentation are stored in a macro module, a collection of Visual Basic programming codes that you can copy to other presentation files. You can view and edit your Visual Basic modules using the Visual Basic editor. By learning Visual Basic you can greatly increase the scope and power of your programs.

Debug a Macro Using Step Mode

Click the Tools menu, point to Macro, and then click Macros.

Click the name of the macro you want to debug.

Click Step Into.

Click the Debug menu, and then click Step Into to proceed through each action.

When you're done, click the File menu, and then click Close And Return To [Program name].

Click OK to stop the debugger.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint