Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find messages using VBA

Status
Not open for further replies.

may1hem

Programmer
Jul 28, 2002
262
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top