The VBA Editor

Outlook 2002 supports all the functionality of Visual Basic for Applications 6.3 in Office XP. Unlike other Office XP applications, where VBA is an integral component of the application, Outlook 2002 provides VBA services through an Office XP COM Add-in. If your company does not want to deploy Outlook VBA to every desktop, you can control the availability of Outlook VBA by using the Custom Installation Wizard or the System Policy Editor in the Microsoft Office XP Resource Kit.

VBA allows you to create code ranging in functionality from simple macros to complex application add-ins. Application add-ins can utilize any of the objects, properties, methods, and events in the Outlook Object Model. Moreover, you can use the VBA environment to add references to other object models, and to use Outlook as an automation controller, in addition to its traditional role as an automation

NEW TO OUTLOOK 2002 You can use VBA code to add custom scripts to the Rules Wizard. However, these script rules are client based, so Outlook must be running for the VBA code to execute.

Launching the VBA Editor

One of the greatest features of VBA is the proximity of the design process to the application you are designing. VBA is only a few keystrokes or mouse clicks away. You have complete and immediate access to all the objects in the Outlook Object Model. Previously, you had to create advanced Outlook and MAPI functionality using C++ code. Now you can operate in an interactive environment that lets you rapidly develop new applications. Follow the steps in the next procedural section to open the Visual Basic for Applications Editor window, shown in Figure 9-1.

Was this article helpful?

0 0

Post a comment