I am trying to delete rows that DON'T contain certain names, the code I currently have is:
The issue is that when I run this code it gets to the end and succesfully deletes the unwanted rows but then comes up with an error :
Run-time error '1004': Delete method of Range class failed
If i choose to debug it highlights the following code:
I can't work out what the problem is, if i remove the NOT from the code and make it delete the rows i wish to keep the code works perfectly fine.
If anyone has any ideas that would be great!!
Bookmarks