djdx2
2009-05-18 20:29:02 UTC
im trying to check if a "Range of Cells" equal the same thing (which is "Test")
Code =
Sub testing()
If Range("A1:A4").Value = "test" Then
Range("C6").Value = "all cells equal test"
Else
Range("C6").Value = "not all cells equal test"
End If
End Sub
but it comes up with an error......
im guessing you cant check the cells this way....
any help?