How can I perform a search using VBA code?
I want to find all emails sent to and from a particular person, and I want to display these emails in a listbox on a Userform.
By the way I'm using Outlook 2007.
Is there a simple search method, or do I need to read through all of the emails using a FOR..NEXT loop?
And if I need to search the Inbox, Sent Items, and other folders, will the search automatically search through all indexed Outlook folders or do I need to add separate code to search through these?
Thanks,
May
I want to find all emails sent to and from a particular person, and I want to display these emails in a listbox on a Userform.
By the way I'm using Outlook 2007.
Is there a simple search method, or do I need to read through all of the emails using a FOR..NEXT loop?
And if I need to search the Inbox, Sent Items, and other folders, will the search automatically search through all indexed Outlook folders or do I need to add separate code to search through these?
Thanks,
May