On 9 Aug 2006 07:56:30 -0700, "gamename" wrote in
microsoft.public.outlook.program_vba:
Is there a quick way to determine if a string exists somewhere an
email's body without having to read it line-by-line?
I don't know what you mean by "read it line-by-line"; AFAIK there is no
such method to access the body of a message.
This is the normal method to determine the existence and position of a
string in a message's body:
lngP1 = InStr(ActiveInspector.CurrentItem.Body,"fubar")
For details, see Help on "Function InStr".
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"