Karthik Thandapani
Member
Hi,
I have a requirement to filter a column and delete visible cells from the column next. Can someone please see the below code and help;
Filter column P, criteria = "Not Completed" and delete visible cells from column Q.
Please see the attached file.
Thanks!
I have a requirement to filter a column and delete visible cells from the column next. Can someone please see the below code and help;
Filter column P, criteria = "Not Completed" and delete visible cells from column Q.
Code:
Worksheets("Sheet1").Range("P1").AutoFilter Field:=1, Criteria1:="Not Completed"
Application.DisplayAlerts = False
ActiveSheet.UsedRange.Offset(1, 0).Resize(ActiveSheet.UsedRange.Rows.Count - 1).Rows.Delete
Application.DisplayAlerts = True
Please see the attached file.
Thanks!