rnlockyer
Dec 8th, 1999, 05:33 AM
I have an app that looks through the default Inbox for mail items that start the subject line with a certain string of characters. This works fine but my code cannot handle non-mailitem items in the Inbox (ie MeetingRequestItems or ReportItems). How can I change the code below to ensure I'm only working with MailItems in the Inbox.
*********************************
Dim olMailMsgs As Outlook.Items
Dim olMailMsg As MailItem
Set olMailMsgs = olFolderInbox.Items
for each olMailMsg in olMailMsgs
{code to process email}
next
*********************************
Any help would be appreciated!!!!! Thanks
*********************************
Dim olMailMsgs As Outlook.Items
Dim olMailMsg As MailItem
Set olMailMsgs = olFolderInbox.Items
for each olMailMsg in olMailMsgs
{code to process email}
next
*********************************
Any help would be appreciated!!!!! Thanks