Please help with using CDO on Windows XP

N

nycboy

I added “Windows CDO for Windows 2000 Library” in
References and tried this code (It doesn't show
CDO version?)

(Code not work, error: “User defined type not defined”):
Public Sub CreateCDOSession()
Dim objCDO As MAPI.Session
Dim objCDOMsg As MAPI.Message
Set objCDO = CreateObject("MAPI.Session")
….


(Code had no compiler complain):
Public Sub CreateCDOSession()
Dim objMsg As Object
Set objMsg = CreateObject("CDO.Message")


1. Is there difference between Windows 2000 and XP
in terms of using CDO?
2. Did I used the right CDO version?

Thanks in advance!
 
S

Sue Mosher [MVP-Outlook]

Wrong reference. You need Collaboration Data Objects 1.21 to use
MAPI.Session.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top