Automate Outlook Via ADO

Category:
Office/VBA
Type:
Snippets
Difficulty:
Intermediate
Author:
Brian Gillham

Version Compatibility: Visual Basic 6

More information:
If you need to use Outlook in your application you can use this code as a starting point. It is an easier alternative to using the Outlook Object Model and trying to understand what it is all about. With very few changes you can access ANY of the folders in Outlook.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: