I have True or False in Col E
i have tried to write code to delete these rows and if there are any blank rows to delete these as well
I get a run time error "autofilter method of range class failed"
It would be appreciated if someone could mend my code
Sub DeleteNotTrue()
With Sheets("check List")
With Cells(1).CurrentRegion
.AutoFilter 5, "<>TRUE"""
.Offset(1).EntireRow.Delete
.AutoFilter
End With
End With
End Sub [/code]
i have tried to write code to delete these rows and if there are any blank rows to delete these as well
I get a run time error "autofilter method of range class failed"
It would be appreciated if someone could mend my code
Sub DeleteNotTrue()
With Sheets("check List")
With Cells(1).CurrentRegion
.AutoFilter 5, "<>TRUE"""
.Offset(1).EntireRow.Delete
.AutoFilter
End With
End With
End Sub [/code]