I need a macro that will locate cell that starts with "COG" (3 letters)
Once that's located I need to delete that row and 10 rows under that.
Thank you
I need a macro that will locate cell that starts with "COG" (3 letters)
Once that's located I need to delete that row and 10 rows under that.
Thank you
Last edited by jimstrongy; 02-13-2012 at 10:52 PM.
try this it works with column A
Please Login or Register to view this content.
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
Hi jimstrongy
Not tested but you might try thisNever mind...didn't refresh the screenPlease Login or Register to view this content.
Last edited by jaslake; 02-11-2012 at 07:42 PM.
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
to delete rows use this
What is your range where code should find COG text?Please Login or Register to view this content.
try this
Please Login or Register to view this content.
this suffices:
Please Login or Register to view this content.
for one “COG” ok, but two or more occurrences?snb
this suffices:
sub snb()
cells.find("COG",,xlvalues,xlpart).resize(11).entirerow.delete
end sub
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks