View Single Post
  #2  
Old April 11th 06, 04:12 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Finding Messages in an Outlook folder

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Robert Halford" wrote in message ...
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


Ads