Please help with using CDO on Windows XP

  • Thread starter Thread starter nycboy
  • Start date Start date
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!
 
Wrong reference. You need Collaboration Data Objects 1.21 to use
MAPI.Session.
 
Back
Top