Hey Guys,

Im using Outlook Automation to parse through a PST file, and Im having trouble checking attachment types. Im attempting to check the attachment to see if it is a MailItem, but its not working, heres the syntax that I'm using.

Any suggestions?

Thanks

Code:
Dim msgAttch As Outlook.Attachment
If msgAttch.Class = Outlook.OlObjectClass.olMail Then
    'Check MailItem
End If