R
Ross
hi,
i have this code:
If Worksheets("1").Cells(acrow, 4).Value = "IB2" Or "IBC"
Then
when run it says type mismatch, but when i remove one,
eirther of them it's ok WHY????
i know i could put some code in befor and get wjhat i
want, but why is it a type mis match, i guess it has
somthinbg to do with the OR logical?
Any suggestions/solutiuons
at the mo i'll go with this long winder (i don't like IIF!)
IBC = 0
If Worksheets("1").Cells(acrow, 4).Value = "IBC" Then
IBC = 1
Else
IBC = 0
End If
If Worksheets("1").Cells(acrow, 4).Value = "IB2" Then
IBC = 1
Else
IBC = 0
End If
If IBC = 1 Then
THANKS Ross
i have this code:
If Worksheets("1").Cells(acrow, 4).Value = "IB2" Or "IBC"
Then
when run it says type mismatch, but when i remove one,
eirther of them it's ok WHY????
i know i could put some code in befor and get wjhat i
want, but why is it a type mis match, i guess it has
somthinbg to do with the OR logical?
Any suggestions/solutiuons
at the mo i'll go with this long winder (i don't like IIF!)
IBC = 0
If Worksheets("1").Cells(acrow, 4).Value = "IBC" Then
IBC = 1
Else
IBC = 0
End If
If Worksheets("1").Cells(acrow, 4).Value = "IB2" Then
IBC = 1
Else
IBC = 0
End If
If IBC = 1 Then
THANKS Ross