
Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
Thanks Sue, but sometimes the value is this:
"non-rated,20,120"
Then use Left() instead of Instr():
If Left(Item.UserProperties("WindowRating"), 2) = "20" Then

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hello,
>
[quoted text clipped - 10 lines]
> Thanks for your help,
> Joel
Sue Mosher [MVP-Outlook] - 27 Jul 2005 21:42 GMT
Well, the more detail you provide the better. We can't read minds. What else haven't you told us about possible values? Why not just add a second Instr() to check for "120"?

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Thanks Sue, but sometimes the value is this:
>
[quoted text clipped - 18 lines]
>> Thanks for your help,
>> Joel
Joel Allen - 27 Jul 2005 23:07 GMT
Thanks, that worked.
Well, the more detail you provide the better. We can't read minds. What else
haven't you told us about possible values? Why not just add a second Instr()
to check for "120"?

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Thanks Sue, but sometimes the value is this:
>
[quoted text clipped - 20 lines]
>> Thanks for your help,
>> Joel