Hello,
I am using MS Exchange 2003 and MS Outlook 2007. Now I try do develop a
programm, which is able to create new appointments in a calendar of an user.
I try to do this with CDo 1.2.1, but I always get the same error message.
Here is some of my code:
Dim oSession As MAPI.Session ' Session object
Dim oCalendar As MAPI.Folder ' Folder object
oSession = CreateObject("MAPI.Session")
oSession.Logon(, , , , , , "server_xy" & vbLf & "user_ab")
oCalendar =
oSession.GetDefaultFolder(MAPI.CdoDefaultFolderTypes.CdoDefaultFolderCalendar)
Dim msg As MAPI.AppointmentItem
msg = oCalendar.Messages(1)
But Then I get the error message: MAPI_E_NOT_FOUND
Can anyone tell me what I do wrong???
Thanks John
Archived from group: microsoft>public>exchange>applications