Hi all --
Can someone please tell me what is wrong with this line of code:
If Cells(i, 4).Value = 1 Then
This line appears in a for next loop being counted by the variable "i". The idea is to look at the value in column D in all the rows, and if the cell contains the number 1, the "then" part is executed.
It compiles fine, and I've got messages inserted so that I know that this line is being executed. But it is not finding my "1"s to trigger the "then" action. (And in my test cases I certainly have some "1"s in the D column.) What super-basic obvious thing am i missing?
It is as if there is no tutorial basic enough for me!
Thanks!
Alfred
Can someone please tell me what is wrong with this line of code:
If Cells(i, 4).Value = 1 Then
This line appears in a for next loop being counted by the variable "i". The idea is to look at the value in column D in all the rows, and if the cell contains the number 1, the "then" part is executed.
It compiles fine, and I've got messages inserted so that I know that this line is being executed. But it is not finding my "1"s to trigger the "then" action. (And in my test cases I certainly have some "1"s in the D column.) What super-basic obvious thing am i missing?
It is as if there is no tutorial basic enough for me!
Thanks!
Alfred