A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Finding Messages in an Outlook folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 11th 06, 01:42 PM posted to microsoft.public.outlook.program_vba
Robert Halford
external usenet poster
 
Posts: 5
Default Finding Messages in an Outlook folder

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
  #2  
Old April 11th 06, 03: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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sent messages going to wrong sent messages folder. smc2night Outlook - Installation 1 March 22nd 06 10:11 PM
Why Messages go to my Spam folder TMacK Outlook Express 8 March 14th 06 08:32 PM
How do I have sent messages go to the sent folder? nc33 Outlook - General Queries 5 February 28th 06 07:44 PM
Finding appointment times in outlook calendar? [email protected] Outlook - Calandaring 1 February 9th 06 08:56 PM
Outlook not finding server David Horn Outlook - General Queries 0 January 31st 06 03:08 PM


All times are GMT +1. The time now is 01:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.