N
Native
I need some help getting Excel to find a row based on a criteria in the
cell and then deleting the row.
For example, how could I get Excel to find any cell in column A that
has "alpha" in the cell to delete the entire row?
I have this from a previous post, which gets me almost there, but I
need it to ignore the first 10 rows (ie-any "alpha" in the first ten
rows stay).
I tried to modify the range to Range("a10:a10000") but it didn't work.
Public Sub test()
line2:
Range("a10").Activate
On Error GoTo line1
Cells.Find(what:="alpha").Activate
ActiveCell.EntireRow.Delete
GoTo line2
line1:
End Sub
Thanks!
cell and then deleting the row.
For example, how could I get Excel to find any cell in column A that
has "alpha" in the cell to delete the entire row?
I have this from a previous post, which gets me almost there, but I
need it to ignore the first 10 rows (ie-any "alpha" in the first ten
rows stay).
I tried to modify the range to Range("a10:a10000") but it didn't work.
Public Sub test()
line2:
Range("a10").Activate
On Error GoTo line1
Cells.Find(what:="alpha").Activate
ActiveCell.EntireRow.Delete
GoTo line2
line1:
End Sub
Thanks!