Chapter 3Editing Recorded Macros

In this chapter, you'll use the Visual Basic Editor to edit the Word and Excel macros you recorded with the Macro Recorder in Chapter 3, “Recording and Running Macros in the Office Applications.” In addition, you'll create a new macro in PowerPoint and see how to edit it. Even if you're working with an application that doesn't include the Macro Recorder (such as PowerPoint), you may still want to read through this chapter because it shows you how to use some of the key editing features of the Visual Basic Editor.

There are three reasons for using the Visual Basic Editor to work with macros:

  • First, to fix any problems in the behavior of a macro you recorded. For example, if you accidentally hit the Enter key ...

Get Mastering VBA for Microsoft Office 2016 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.