Exploring the Developer Tab

Excel provides commands for recording and running macros – as well as several other tasks – on the Developer tab of the Ribbon.

The Developer tab is divided into four groups: Code, Add-ins, Controls, and XML. For recording, running, and editing macros, we are most concerned with the commands in the Code section of the Developer tab (refer to Figure 1.1). You'll learn more about the Controls section of the Developer tab in Chapter 26 "Creating Custom Dialogs with User Forms."

The Code section of the Developer tab contains these commands:

  • Visual Basic – clicking this command opens the Visual Basic Editor (VBE). You'll learn more about the VBE in Chapter 4 "Writing Simple Macro Procedures."

  • Macros – clicking this command opens Excel's Macro dialog. You use the Macro dialog to see a list of currently available macros, and to run, edit, or delete macros. You'll learn more about the Macro dialog in this chapter and the next.

  • Record Macro – use this command to start Excel's Macro Recorder, as described in this chapter. When the Excel Macro Recorder is running, this command changes to the Stop Recording command.

  • Use Relative References – clicking this command toggles relative references on and off. Relative references are explained later in this chapter.

  • Macro Security – clicking this command opens the Excel Trust Center window with the Macro Settings tab selected. Use this command to set the level of security for macro code. Refer to Excel's help system for more information on the options available. For most users and VBA developers, the default settings are fine.

Now that you have a sense of the macro-related commands available to you on the Developer tab, you're ready to start putting them to work starting with the next section.