O'Reilly logo

Excel VBA Programming For Dummies, 5th Edition by John Walkenbach, Michael Alexander

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6

Using the Excel Macro Recorder

IN THIS CHAPTER

Bullet Recording your actions by using the Excel built-in macro recorder

Bullet Understanding the types of macros you can record

Bullet Setting the appropriate options for macro recording

Bullet Evaluating the efficiency of recorded macros

You can use two methods to create an Excel macro:

  • Record it by using the Excel macro recorder.
  • Write it manually.

This chapter deals specifically with the ins and outs of using the Excel macro recorder. Recording a macro isn’t always the best approach, and some macros simply can’t be recorded, no matter how hard you try. You’ll see, however, that the Excel macro recorder is very useful. Even if your recorded macro isn’t quite what you want, the macro recorder can almost always lead you in the right direction.

Recording Basics

You take the following basic steps when recording a macro.

  1. Determine what you want the macro to do.
  2. Get things set up properly.

    This step determines how well your macro works.

  3. Determine whether you want cell references in your macro to be relative or absolute.
  4. Click the Record Macro ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required