hi,
i'm trying to define macro that check cell.value and compare it to other cell.
i get an eror that object required/
please help...
Sub checkcells()
Dim cell As Range
Dim x As Range
For Each cell In Range("a1:a2")
For Each x In Range("c1:c2")
If cell.Value = x.Value Then
MsgBox o.k
End If
Next x
Next cell
End Sub
i'm trying to define macro that check cell.value and compare it to other cell.
i get an eror that object required/
please help...
Sub checkcells()
Dim cell As Range
Dim x As Range
For Each cell In Range("a1:a2")
For Each x In Range("c1:c2")
If cell.Value = x.Value Then
MsgBox o.k
End If
Next x
Next cell
End Sub