Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if left([D1],2)="SP" then [d1].entirerow.delete
Why use a tool that takes longer to code and takes longer to execute?Mizzness said:I agree the Autofilter is easier but would rather use a loop.
Please advise.
For Each r In Range("C:C")
Rows("5:5").Select
[A1].AutoFilter
[A1].AutoFilter Field:=3, Criteria1:="=SP*"
with [A1].Currentregion
.range(.cells(2,1), .cells(.rows.count, .columns.count)).specialcells(xlcellstypevisible).entirerow.delete
end with