Group:  Microsoft Outlook » microsoft.public.outlook.program_addins
Thread: Items Find

Geek News

Items Find
"Julieta Prandi" <jprandi[ at ]gmail.com> 4/7/2006 3:16:14 PM
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 --)


Re: Items Find
Michael Bauer <mb[ at ]mvps.org> 4/7/2006 5:23:02 PM
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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


[Quoted Text]
> 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 --)
Re: Items Find
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 4/7/2006 5:28:44 PM
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Julieta Prandi" <jprandi[ at ]gmail.com> wrote in message news:Ouyp$ZlWGHA.4652[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> 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 --)
>
>
Re: Items Find
"Julieta Prandi" <jprandi[ at ]gmail.com> 4/7/2006 7:12:15 PM
This is a good workaround.
Thanks you.

"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> wrote in message
news:O1n7uwmWGHA.1192[ at ]TK2MSFTNGP04.phx.gbl...
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Julieta Prandi" <jprandi[ at ]gmail.com> wrote in message
news:Ouyp$ZlWGHA.4652[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> 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 --)
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net