Hello,
I am new to posting on the forums, although I have found responses to other threads very helpful for previous queries I have had. So thanks to all those that post answers on this site
I cannot find anywhere help with my current issue. So any advice would be much appreciated.
The purpose of the macro is to search a data range. Where the cell contains 'Y' I want it to keep the row. Where the cell contains anything else I would like the row deleted. Please see below my code:
I didn't know how to instruct excel to just leave the row, so as a placeholder I made it turn bold.Please Login or Register to view this content.
When I run the macro it clears all the rows up to the first 'Y' it comes across. Then it stops and a run time 1004 error. I am sure it is a simple mistake I am making. Any advice would be much appreciated
Thanks
Bookmarks