Jagwarman
asked on
VBA to delete rows that do not contain the words Proven or Under Investigation
Can someone assist in providing me with some code to delete rows that do not contain the words Proven or Under Investigation [which could be in either Lower or Uppercase] The Column these will be found in is 'I' so I only want to keep the rows that contain either of those words.
Thank you
Thank you
ASKER
Unfortunately that deletes the ones I want to keep :-(
Hi
Are you sure ? Your title says you want to keep Proven and Under inverstigation rows, right ? If not,
replace
with
Kris
Are you sure ? Your title says you want to keep Proven and Under inverstigation rows, right ? If not,
replace
.AutoFilter 1, "<>Proven", xlAnd, "<>Under investigation"
with
.AutoFilter 1, "=Proven", xlOr, "=Under investigation"
Kris
ASKER
yes I want to keep Proven and under investigation but when I run it, it deletes those and keeps everything else. I am using Excel 2010
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try
Open in new window
Kris