This code won't work because you are using CDO constants, like
CdoPR_DISPLAY_NAME, without declaring them. Either declare them as
constants or use the literal values.
Also, you can simplify your Session.Logon statement:
Set objSession = CreateObject("MAPI.Session")
objSession.Logon , , False, False
FYI, there is a separate mailing list devoted to Outlook development --
mailto:[EMAIL PROTECTED].
_________________________________________________________________
List posting FAQ: http://www.swinc.com/resource/exch_faq.htm
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe: mailto:[EMAIL PROTECTED]
Exchange List admin: [EMAIL PROTECTED]