Hey guys,
This seems easy enough, but I can't quite get it.
Here's the code:
All I want to do is filter in column A for any line that says "DELETE" and select all the rows that do and delete them. Then unfilter.
Any ideas how to do this?
Thanks.
This seems easy enough, but I can't quite get it.
Here's the code:
Code:
Sub deletelines()
'
' deletelines Macro
ActiveSheet.ListObjects("Table2").Range.AutoFilter Field:=1, Criteria1:= _
"DELETE"
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Delete Shift:=xlUp
Range("Table2[[#Headers],[LineStatus]]").Select
Selection.AutoFilter
End Sub
All I want to do is filter in column A for any line that says "DELETE" and select all the rows that do and delete them. Then unfilter.
Any ideas how to do this?
Thanks.