B
bill
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 objEmbeddedMessage As MAPI.Message
Dim objNewMail As MAPI.Message
If cboFileType.SelectedIndex <> -1 Then
ListBox1.Items.Clear()
'create session and logon
objSession = CreateObject("MAPI.Session")
'Use this for non exchange outlook - objSession.Logon("Outlook")
objSession.Logon("Default Outlook Profile") 'works on Halliburton COE
' objSession.Logon()
'reference the messages in the inbox
objInbox = objSession.Inbox
objMessages = objInbox.Messages
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 objEmbeddedMessage As MAPI.Message
Dim objNewMail As MAPI.Message
If cboFileType.SelectedIndex <> -1 Then
ListBox1.Items.Clear()
'create session and logon
objSession = CreateObject("MAPI.Session")
'Use this for non exchange outlook - objSession.Logon("Outlook")
objSession.Logon("Default Outlook Profile") 'works on Halliburton COE
' objSession.Logon()
'reference the messages in the inbox
objInbox = objSession.Inbox
objMessages = objInbox.Messages