View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
John Young John  Young is offline
external usenet poster
 
Posts: 2
Default Problem with logical sentence

Have you tried bracketing the equations? Might work..

eg.

If ((Cells(NumFilas, 2).Value < "NAFF") Or (Cells(NumFilas, 2).Value <
"NEQ") _
Or (Cells(NumFilas, 2).Value < "IBR")) Then


John

"cecilia12345" wrote in message
...
i have this conditional sentence
If Cells(NumFilas, 2).Value < "NAFF" Or Cells(NumFilas, 2).Value <
"NEQ" _
Or Cells(NumFilas, 2).Value < "IBR" Then

....

end if

however, the conditions are ignored when the program is running...
why?


---
Message posted from http://www.ExcelForum.com/