Article ID: 220595 - Last Review: March 15, 2006 - Revision: 9.4 How to automate Outlook by using Visual BasicThis article was previously published under Q220595 On This PageSUMMARY This article demonstrates how to programmatically control
Microsoft Outlook using Automation from Visual Basic. The example demonstrates
creating contacts, creating appointments, and sending messages by using
Microsoft Outlook's object-model. MORE INFORMATION Follow the steps below to create and run the example. To
run the sample, you need an early-bound reference to a Microsoft Outlook type
library. The following table lists the file names of the type libraries for the
different versions of Microsoft Outlook: Collapse this table
Building the automation sample
New to Outlook 2002 are the two dialog boxes: one warning you that a program is trying to access e-mail addresses you have stored in Outlook and asking if you want to allow this, and another message to the effect that a program is trying to send e-mail. This feature will protect you from unknowingly being used by a virus that sends e-mail from your system. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 290500
(http://support.microsoft.com/kb/290500/
)
Description of the developer-related e-mail security features in Outlook 2002
REFERENCES
For more information about Outlook programming resources, click the following article numbers to view the articles in the Microsoft Knowledge Base:
166368
(http://support.microsoft.com/kb/166368/
)
Resources for custom forms and programming in Outlook 97
180826
(http://support.microsoft.com/kb/180826/
)
Resources for custom forms and programming in Outlook 98
271225
(http://support.microsoft.com/kb/271225/
)
Resources for custom forms and programming in Outlook 2000
287531
(http://support.microsoft.com/kb/287531/
)
List of resources for custom forms and programming with Outlook 2002
313802
(http://support.microsoft.com/kb/313802/
)
How to retrieve contacts by using Outlook object model in Visual Basic .NET
313788
(http://support.microsoft.com/kb/313788/
)
How to create an appointment by using Outlook object model in Microsoft Visual Basic .NET
APPLIES TO
| Article Translations
|
Back to the top
