Following code works fine in VB:
Set OutlookApplication = CreateObject("Outlook.Application")
Set OutlookMailItem = OutlookApplication.CreateItem(olMailItem)
Constant olMailItem ( = 0) is declared in Outlook object library. Try to use 0 instead of olMailItem or define olMailItem = 0
Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000) br>
VB (.NET) - what other language do you need in the whole Universe?...