I want to go over all emails in a folder. The attached code works for some emails and for some the type of myEmail is System._ComObject. Any ideas how to fix this ?
For Each myEmail In mySubFolder.Items
If TypeOf (myEmail) Is Microsoft.Office.Interop.Outlook.MailItem Then
' do some work