I have to display YES or NO from the given data of EXCEL . I have tried to write program . But i cant find the solution . It displays YES only not NO even if output should be NO . Please Help me with this program .
I have to check the data of whole column of C ( data is from number 2 to 1439 of the column). If the data is >=0.003 , It should display NO else it should display Yes.
CODE:
' Declare array
Dim arrMarks(0 To 1437) As Double
Sub ArrayLoops()
' Fill the array with numbers
Dim i As Integer
For i = LBound(arrMarks) To UBound(arrMarks)
arrMarks(i) = Range("C2:C1439").Select
Next i
' Using If statement
For i = LBound(arrMarks) To UBound(arrMarks)
If arrMarks(i) >= 0.003 Then
MsgBox ("NO")
Else
End If
Next i
MsgBox ("YES")
End Sub
msgboxsufficient enough for you?