Using the VBA Editor
After recording a macro, PowerPoint
Editing a Macro Using the VB Editor
You may find that sometimes a macro is not working the way you had intended. This may be caused by the way your mouse and keystrokes were converted into Visual Basic. For example, if you record a macro and press the Page Down key five times (from slide one), it will be rewritten in Visual Basic as a macro that goes to slide six. To create a macro that would move down five slides, you would have to use the Visual Basic Editor to edit the default macro and make it work the way you intended.
To use the VB Editor and edit a specific macro:
Using the VB Editor to Create a Macro
By including the Visual Basic Editor (VBE), PowerPoint gives you a built-in programming environment with a wealth of features. The editor is a subset of the popular Visual Basic language. Use the editor to edit, write, debug, and manage macro script code. The editor also has many useful
There are entire books that focus on Visual Basic's impressive capabilities, but the following sections just highlight the basic features you need to create macros.
You can easily cut and paste or drag and drop sample code into a macro module. Open the Visual Basic Editor and choose View, Code from the menu, or press F7 to display the Visual Basic Editor window. After you copy or add VBA code to the window, the macros are automatically displayed and available in PowerPoint's Macro dialog box.
The Visual Basic Help files and Object Browser are useful reference sources; they can give you insight into the objects with which macro subroutines can work.
Finding More Macro Information
To find the latest information about using Visual Basic for Applications with PowerPoint, check out the Microsoft Support Page on the Web. You can find sample code for common automation
To search for PowerPoint macro samples and tips using the Microsoft Support Page, log on to the Internet and point your browser to http://support.microsoft.com/support/default.asp.
PowerPoint can be completely customized by adding macros written in the Visual Basic for Application programming language. You can create presentation macros to automate a wide variety of tasks. You might want to invest some time creating macros for