Hi. I am having a problem. I have this codes
Dim threshold As Long
threshold = 0.5
Dim negativeThreshold As Long
negativeThreshold = 0
Dim logic As String
logic = (ws.Range("C" & x) = "check") And Val(ws.Range("D" & x))
If logic > threshold Or logic < negativeThreshold Then
ws.Range("E" & x).Value = "->Chk_" & counter
counter = counter + 1
Else
ws.Range("E" & x).Value = ""
End If
Next x
i want to check for values lesser than 0. As in negative values. But it can get -1. but not -0.1
please help
<!-- / message -->
Dim threshold As Long
threshold = 0.5
Dim negativeThreshold As Long
negativeThreshold = 0
Dim logic As String
logic = (ws.Range("C" & x) = "check") And Val(ws.Range("D" & x))
If logic > threshold Or logic < negativeThreshold Then
ws.Range("E" & x).Value = "->Chk_" & counter
counter = counter + 1
Else
ws.Range("E" & x).Value = ""
End If
Next x
i want to check for values lesser than 0. As in negative values. But it can get -1. but not -0.1
please help
<!-- / message -->