Chapter 3

Working in the Visual Basic Editor

IN THIS CHAPTER

Bullet Accessing the Visual Basic Editor

Bullet Discovering the Visual Basic Editor parts

Bullet Knowing what goes into a VBA module

Bullet Getting VBA code into a module

Bullet Customizing the VBA environment

The Visual Basic Editor (VBE) is the main tool for programming in VBA. It’s where you view and edit recorded code and write code from scratch. In this chapter, you find out how to work with the VBE, and you get down to the nitty-gritty of writing some VBA code.

Getting to Know the Visual Basic Editor

The Visual Basic Editor (often referred to as the VBE) is a separate application where you write and edit your VBA macros. Beginning with Excel 2013, when you open multiple workbooks, each opens in a separate window. However, the VBE only ever has one window, and from this window you can write, edit, and view macros for any open workbook.

Remember You can’t run ...

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.