Finding Messages in an Outlook folder

  • Thread starter Thread starter Robert Halford
  • Start date Start date
R

Robert Halford

Where can I find out the full syntax for the "find" method for an Outlook
folder?

I want to be able to search a folder for messages matching certain
criteria - for example create date less than 10 days ago, subject contains a
specific word etc.

The documentation just shows a single example:

Set objContact = objContacts.Items.Find("[FileAs] = ""Smith, Jeff"" and
[FirstName] = ""Jeff""")

I would like to see a full list of fields and the sort of match criteria
available (e.g. how to search on dates).

Thanks
 
For how to search on dates, see http://www.outlookcode.com/d/finddate.htm

You already know how to search on strings. Searching on numbers or Boolean values is just the same, only you don't enclose the values in quotation marks.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top