excel vba - If and in VBA many and conditions not working together -
if dbsheet.range("k1").offset(i, 0) = "181" , ucase(dbsheet.range("a1").offset(i, 0)) <> "no trade" , worksheetfunction.isnumber(worksheetfunction.search("x", ucase(dbsheet.range("c1").offset(i, 0)))) = false
the problem facing line not taking first condition (="181").
i suspect has = false, don't know how solve it.
i don't want take consideration cell if has x string in it.
i know there no problem first condition because works fine without third condition it's weird because if isolate third condition won't work either.
please help.
thx
Comments
Post a Comment