Hi,
The "If" statement below results in a
Run Time Error 13
Type Mismatch
What would be the correct way to construct the "If" statement?
Thanks
Sub MakeSimilarDist()
'
last = Cells(Rows.Count, "AM").End(xlUp).Row
For i = last To 1 Step -1
If (Cells(i, "AM").Value) < (Cells(i, "DS").Value) + 0.6 Or (Cells(i, "AM").Value) > (Cells(i, "DS").Value) - 0.6 Then
Cells(i, "A").EntireRow.Delete
End If
Next i
'
End Sub
Bookmarks