I'm trying to make this code find a row where column V is not equal to "Y" or "L" AND column A is not blank. I think I'm overdoing it a bit, I'm sure there is an easier way to check both cells on the row.
Sub EndMove()
Dim Col1 As Integer, Col2 As Integer, rowCount As Integer, currentRow As Integer
Dim currentRowValue As String, currentRowValue2 As String
Col1 = 22
Col2 = 1
rowCount = Cells(Rows.Count, Col1).End(xlUp).row
For currentRow = 1 To rowCount
currentRowValue = Cells(currentRow, Col1).Value
If currentRowValue <> "y" Or currentRowValue <> "l" Then
currentRowValue2 = Cells(currentRow, Col2).Value
If Not IsEmpty(currentRowValue2) Then
Cells(currentRow, Col1).Select
MsgBox "Move this?"
End If
End If
Next
End Sub
Thanks
Selectanything as stated in my comment. Chances are, you are just usingSelectas a middle operator. You already have an answer to your question here so your next problem deserves a new question imo.