Thread: EntryID problem
View Single Post
  #4  
Old August 23rd 07, 03:31 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default EntryID problem

You have to log off the first mailbox before you log into a second mailbox
in CDO.

Why are you using CDO for this anyway? I'd be using either the Outlook
object model and GetSharedDefaultFolder or Redemption. CDO is old, passe and
not standard any more. It's not supported for managed code and is being
deprecated. It's not the way to go.

Just use GetSharedDefaultFolder with a Recipient object that you create for
whoever's mailbox you want to access.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"vonClausowitz" wrote in message
oups.com...
snip
What am I missing then?
This is what I had before but didn't work:

strProfile = "ServerName" & vbCrlf & "MailAccount"
Set objSession2 = CreateObject("MAPI.session")
objSession2.Logon "", "", False, True,0,False,strProfile

Someone told me that you can't access two mailboxes wit CDO.

please some example.

Marco


Ads