Hi folks, new to the Forum.
I have hit a problem that I can't seem to find a solution for online and was hoping someone could help.
I have used a piece of code elsewhere in the macro I am writing that finds empty cells in Column D and deletes the row where it finds them.
("Last" is a wonderful custom function I found a long time ago that finds the final row or column of used data in a number of formats)![]()
Please Login or Register to view this content.
My problem is, I have come across an instance on a worksheet where the row should only be deleted if both Column C and Column D are empty. There are multiple instances of one having a value in it but not the other, and I want those rows left alone.
I tried altering part of the code to:
But this would delete the row if either column was empty, even if there was a value in the other one.![]()
Please Login or Register to view this content.
And when I tried:
Excel got angry at me!![]()
Please Login or Register to view this content.
I'd prefer not to use a loop if possible, but have no worries about doing so if need be.
Hoping someone can help![]()
Bookmarks