Find emails in outlook matching criteria
Suppose there are 3 mails in my inbox with subject as "testmail"
I need to find out collection of emails in my inbox having same subject.
I tried with Find method
Set myEmail = oAllMails.Find("[Subject] =testmail")
When i use find method it returns only one email matching the subject. I want all 3 of them.
I dont want to traverse through the whole collection of email and check subject for each email and if it matches storing that email object in dictionary.
I wanted to check if there is any method which will provide me collection of emails matching my criteria then I can iterate through that collection and decide which email i need.
Please help. thanks.
you can code a function with "find" and "findnext" by yourself....