I am trying to delete the entire row if the column J is greater than 1.
I know there are million ways to writethis.
Any suggestions?
Sub delete_columnj()
x = 1
Do Until x > 10000
If Sheets("sheet1").Cells(x, 10) > 1 Then
Rows(x).Select
Selection.Delete Shift:=xlUp
Else
x = x + 1
End If
Loop
End Sub
I know there are million ways to writethis.
Any suggestions?
Sub delete_columnj()
x = 1
Do Until x > 10000
If Sheets("sheet1").Cells(x, 10) > 1 Then
Rows(x).Select
Selection.Delete Shift:=xlUp
Else
x = x + 1
End If
Loop
End Sub