Looks like you're missing a %. The search string should be:
"urn:schemas:mailheader:subject LIKE %" & subject & "%"
AdvancedSearch cannot be used from a script, however, since it requires monitoring of related events to know when the search has completed.

Signature
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi,
>
[quoted text clipped - 29 lines]
> outlookApp = null;
> WScript.Quit();
habib - 12 Sep 2003 19:40 GMT
So any solution ?
thanks.
>-----Original Message-----
>Looks like you're missing a %. The search string should be:
>
>"urn:schemas:mailheader:subject LIKE %" & subject & "%"
>
>AdvancedSearch cannot be used from a script, however, since it requires monitoring of related events to know
when the search has completed.
>> Hi,
>>
[quoted text clipped - 31 lines]
>>
>.