Revathi Kannan
New Member
- Joined
- Jan 27, 2012
- Messages
- 23
Hi all,
I have the below macro wherein it will filter the value apart from #N/A and delete the entire row but i need to release the filter if the below doesn't meets the requirement. Please assist

Worksheets("code").Activate
Range("$A$1:$BE$10").AutoFilter Field:=28, Criteria1:="<>#N/A"
With ActiveSheet.AutoFilter.Range
.Offset(1).Resize(.Rows.Count - 1).EntireRow.Delete
I have the below macro wherein it will filter the value apart from #N/A and delete the entire row but i need to release the filter if the below doesn't meets the requirement. Please assist


Worksheets("code").Activate
Range("$A$1:$BE$10").AutoFilter Field:=28, Criteria1:="<>#N/A"
With ActiveSheet.AutoFilter.Range
.Offset(1).Resize(.Rows.Count - 1).EntireRow.Delete