Hi,
I'm trying to write a macro that deletes a row if column B does not contain the word "DOGS"
There is a different number of rows every day.
Any help would be greatly appreciated,
Thanks!
Hi,
I'm trying to write a macro that deletes a row if column B does not contain the word "DOGS"
There is a different number of rows every day.
Any help would be greatly appreciated,
Thanks!
Hi Tesseh (and fellow Sydneyite),
Try this (initially on a copy of your data as results cannot be undone if they're not as expected):
Note that the code is looking for the text 'DOGS' in that case. If your not worried about case sensitivity (i.e. 'Dogs', 'dogs', etc...), change this line of code...![]()
Please Login or Register to view this content.
...to this:![]()
Please Login or Register to view this content.
Regards,![]()
Please Login or Register to view this content.
Robert
____________________________________________
Please ensure you mark your thread as Solved once it is. Click here to see how
If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post
Robert, did I ever thank you for this? I use this macro everyday and it works perfectly. Thanks so much!!!!
No, I didn't think you ever did but that's fine - you have now
If you could mark the thread as closed it would be appreciated.
Thanks,
Robert
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks