Chapter 2

Building Simple Macros

IN THIS CHAPTER

Bullet Developing a useful VBA macro: A hands-on, step-by-step example

Bullet Recording your actions by using Excel’s macro recorder

Bullet Examining and running recorded code

Bullet Changing a recorded macro

Bullet Dealing with macro security issues

The best way to get into a cold body of water is to jump right in — no sense prolonging the agony. By wading through this chapter, you can get your feet wet immediately but avoid getting in over your head.

By the time you reach the end of this chapter, you’ll start feeling better about this Excel programming business, and you’ll be glad you took the plunge. This chapter provides a step-by-step demonstration of how to develop a simple but useful VBA macro.

Displaying the Developer Tab

Before you can call yourself an Excel programmer, you need to learn the secret handshake. That means you need to make a small change so that Excel will display a new tab at the top of the screen: Developer. Getting Excel to display the Developer ...

Get Excel VBA Programming For Dummies, 6th Edition 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.