I tried to handle the message by saying
ErrorHandler:
If Err.Number 0 Then
i = i + 1
Resume Next
End If
It goes to the next message but it duplicated the subject line from previous
message eventhough I'm using oCurrentEmail.Subject to get the subject line.
What type of message class would be an email item. I did go thru help and I
think it would be olMail but then read receipt would probably come under the
same class.
Thanks.
"Ken Slovak - [MVP - Outlook]" wrote:
Either handle the error if it occurs and then move on, or test for the Class
or MessageClass of the item before assigning it to a MailItem type object.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"RS" wrote in message
...
Hello,
I'm trying to get all the subject lines from a specific folder. Sometimes
I
get the error 13 saying type mismatch for the following line:
Set oCurrentEmail = oFolderEMail.Items.Item(i)
I think its because either it came across a read receipt or an email item
that it could not recognize. How can I skip that item and move on to the
next one. Also, sometimes it does go thru with read recipts but it wont
pick
up the subject line.
Any help would be greatly appreciated.
Thanks.