L
Little Penny
I am trying to expand on my simple macro to:
Look in column B and if it finds the value "No Employee" to select
that row and delete it. I also would like look in column C for values
that are 500 or less and delete that row.
My data could be as little as 75 rows to several hundred rows. And
these values could appear several times in there respective columns.
I'm not sure how to get the code to delete multiple instances.
Sub RemoveEmployee()
If Range("B5").Value = "No Employee" Then
Rows("5:5").Select
Selection.Delete Shift:=xlUp
End If
End Sub
Look in column B and if it finds the value "No Employee" to select
that row and delete it. I also would like look in column C for values
that are 500 or less and delete that row.
My data could be as little as 75 rows to several hundred rows. And
these values could appear several times in there respective columns.
I'm not sure how to get the code to delete multiple instances.
Sub RemoveEmployee()
If Range("B5").Value = "No Employee" Then
Rows("5:5").Select
Selection.Delete Shift:=xlUp
End If
End Sub