I’m trying to find an item in Outlook where the message body meets certain criteria. The item will be in a shared folder rather than the users default mailbox. I’ve got so far…
Dim cOutlook As CEMail
Dim cMailFolder As Outlook.MAPIFolder
Dim olMailItem As Outlook.MailItem
‘// Create the outlook item to initialise outlook
Set cOutlook = New CEMail
‘// Try and create a reference to the ‘Shared Marketing’ MAPI folder
Set cMailFolder = cOutlook.OutlookNameSpace.Folders.Item(“Mailbox – Shared Marketing”)
So once I’ve created my mail folder obect, I can use the ‘Find’ method to search that particular folder. The item I want to find would have a unique ID in the message body, say 44506. I’m stuck on the syntax to use to search the message body for this ID?
‘// Now start searching the folders for the selected campaign ID
Set olMailItem = cMailFolder.Items.Find ????????
Any Ideas??
Thanks