hi Ceemo,
I think a better approach would be to use an autofilter and filter fo
all rows that do not equal "y", the code only takes one line & use
Excel's inbuilt functionality which is often faster than other macr
approaches eg:
Selection.AutoFilter Field:=1, Criteria1:="<y"
where the one is the # of the column relative to the left of the are
that is being autofiltered.
btw, I think Ron Debruin has a good page on filtering for values - i
may pay to google it.
hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience..
--
broro18
-----------------------------------------------------------------------
broro183's Profile:
http://www.excelforum.com/member.php...fo&userid=3006
View this thread:
http://www.excelforum.com/showthread.php?threadid=54545