tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 399
Hi there,
Data is entered into range A9 to L (row unknown as data keeps being added). I would like a macro to delete the entire row if BOTH the cells in column E and F are blank. If only one is blank, it shouldn't be deleted.
I'm not really hitting the mark so far with my code.
Sub Delete_Blank_Rows()
On Error Resume Next
ActiveSheet.Columns("E").SpecialCells(xlBlanks).EntireRow.Delete
End Sub
This deletes all rows only if column E is blank.
Can someone help me please?
Thank you.
Data is entered into range A9 to L (row unknown as data keeps being added). I would like a macro to delete the entire row if BOTH the cells in column E and F are blank. If only one is blank, it shouldn't be deleted.
I'm not really hitting the mark so far with my code.
Sub Delete_Blank_Rows()
On Error Resume Next
ActiveSheet.Columns("E").SpecialCells(xlBlanks).EntireRow.Delete
End Sub
This deletes all rows only if column E is blank.
Can someone help me please?
Thank you.