I have this code to get to the default Outlook inbox but I would like to get
to the inbox of an additional added mailbox. Can this be done? Here is the
code I'm using below:
Dim objSession As MAPI.Session
Dim objInbox As MAPI.Folder
Dim objMessages As MAPI.Messages
Dim objMessage As MAPI.Message
Dim objEmbeddedMess age As MAPI.Message
Dim objNewMail As MAPI.Message
If cboFileType.Sel ectedIndex <-1 Then
ListBox1.Items. Clear()
'create session and logon
objSession = CreateObject("M API.Session")
'Use this for non exchange outlook - objSession.Logo n("Outlook")
objSession.Logo n("Default Outlook Profile") 'works on Halliburton COE
' objSession.Logo n()
'reference the messages in the inbox
objInbox = objSession.Inbo x
objMessages = objInbox.Messag es
--
Bill Bray
to the inbox of an additional added mailbox. Can this be done? Here is the
code I'm using below:
Dim objSession As MAPI.Session
Dim objInbox As MAPI.Folder
Dim objMessages As MAPI.Messages
Dim objMessage As MAPI.Message
Dim objEmbeddedMess age As MAPI.Message
Dim objNewMail As MAPI.Message
If cboFileType.Sel ectedIndex <-1 Then
ListBox1.Items. Clear()
'create session and logon
objSession = CreateObject("M API.Session")
'Use this for non exchange outlook - objSession.Logo n("Outlook")
objSession.Logo n("Default Outlook Profile") 'works on Halliburton COE
' objSession.Logo n()
'reference the messages in the inbox
objInbox = objSession.Inbo x
objMessages = objInbox.Messag es
--
Bill Bray
Comment