Re: if statement
- From: "Joel Allen" <joelallen123@xxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 15:07:38 -0700
Thanks, that worked.
"Sue Mosher [MVP-Outlook]" <suemvp@xxxxxxxxxxxxxxx> wrote in message
news:eLUtuxukFHA.3380@xxxxxxxxxxxxxxxxxxxxxxx
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"?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Joel Allen" <joelallen123@xxxxxxxxxxx> wrote in message
news:%23m57IsukFHA.3960@xxxxxxxxxxxxxxxxxxxxxxx
> Thanks Sue, but sometimes the value is this:
>
> "non-rated,20,120"
>
> "Sue Mosher [MVP-Outlook]" <suemvp@xxxxxxxxxxxxxxx> wrote in message
> news:u%23visstkFHA.3804@xxxxxxxxxxxxxxxxxxxxxxx
> Then use Left() instead of Instr():
>
> If Left(Item.UserProperties("WindowRating"), 2) = "20" Then
>
> "Joel Allen" <joelallen123@xxxxxxxxxxx> wrote in message
> news:%238k4JwskFHA.320@xxxxxxxxxxxxxxxxxxxxxxx
>> Hello,
>>
>> I have this and it doesn't quite work:
>>
>> If InStr(1, Item.UserProperties("WindowRating") ,"20") > 0 Then
>> colFields("min20").CheckBox.Value = True
>> end if
>>
>> I want colFields("min20").CheckBox.Value = True
>> If WindowRating has a 20 in it like this (20 or 20,120), but not if
>> WindowRating only = 120
>>
>> Thanks for your help,
>> Joel
>>
>>
>
>
.
- References:
- if statement
- From: Joel Allen
- Re: if statement
- From: Sue Mosher [MVP-Outlook]
- Re: if statement
- From: Joel Allen
- Re: if statement
- From: Sue Mosher [MVP-Outlook]
- if statement
- Prev by Date: RE: Creating a Macro to move all messages from one folder to anoth
- Next by Date: RE: Contact Program
- Previous by thread: Re: if statement
- Next by thread: Context Menu
- Index(es):
Relevant Pages
|