|
VB and VBA in Outlook Development
For the current version
of this page, click
here.
Microsoft Outlook forms use
VBScript,
but you can also control Outlook using Visual Basic itself or using
Visual Basic for Applications (VBA) from within an Office
application.
Outlook
2000 and later versions support VBA, allowing you to write code to control
Outlook and respond to its events. Launch VBA in Outlook by
pressing Alt+F11. You will see a built-in ThisOutlookSession module
and can add other modules of your own. Argumentless procedures written in Outlook VBA can
be launched as macros by pressing Alt+F8 or by
adding
the macro as a custom toolbar button. However, Outlook 2000 VBA
routines cannot be used in earlier versions.
You can also use VB to write .dlls and ActiveX controls that can
be used to provide additional functions to Outlook forms.
The key to using VB with Outlook is understanding the
Outlook
Object Model. For a quick look at how to use Outlook
objects, see
HOWTO Automate Outlook using Visual Basic.
VBAProject.otm
| Tools | Discussion
| Techniques | Tutorials
| Samples |
Problems
| More Information
|