Items Find

  • Thread starter Thread starter Julieta Prandi
  • Start date Start date
J

Julieta Prandi

Hi,
I'm trying to find a item that contains in the beginning of the subject a
certain string. I know that I can find a specific subject using [Subject] =
xxx but I want to find only the beginning or if the subject contains certain
string.

Is this possible?

Regards,
)-- July --)
 
Am Fri, 7 Apr 2006 12:16:14 -0300 schrieb Julieta Prandi:

July, in Outlook >= XP you can use the AdvancedSearch method. In OL 2000
you´d need to loop through all items and check each subject, e.g. with the
InStr function.
 
You can try using > and <:

strFind = "[Subject] >= " & Chr(34) & "xxx" & Chr(34) & _
" AND [Subject] < " Chr(34) & "xxy" & Chr(34)

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
This is a good workaround.
Thanks you.

You can try using > and <:

strFind = "[Subject] >= " & Chr(34) & "xxx" & Chr(34) & _
" AND [Subject] < " Chr(34) & "xxy" & Chr(34)

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

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