I am trying to evaulate the value of a cell under three conditions
1. If IsError(Range(strAdd).Offset(0, y - 1).Value)
Or
2. Range(strAdd).Offset(0, y - 1).Value = ""
Or
3. Range(strAdd).Offset(0, y - 1).Value = 1 Then
1 is causing the problem. On its own it runs fine, and gives me the result I expect. If I try to combine it with the other two. i.e.
it causes the code to fail. I'm sure its a small correction but I can't see it.
Thanks
Arf
1. If IsError(Range(strAdd).Offset(0, y - 1).Value)
Or
2. Range(strAdd).Offset(0, y - 1).Value = ""
Or
3. Range(strAdd).Offset(0, y - 1).Value = 1 Then
1 is causing the problem. On its own it runs fine, and gives me the result I expect. If I try to combine it with the other two. i.e.
HTML:
If IsError(Range(strAdd).Offset(0, y - 1).Value) Or Range(strAdd).Offset(0, y - 1).Value = "" Or Range(strAdd).Offset(0, y - 1).Value = 1 Then
it causes the code to fail. I'm sure its a small correction but I can't see it.
Thanks
Arf