Hello,
I have an excel workbook that has +100 worksheets with exact same structure.
4 columns; 3rd and 4th column contains data. What I'm trying to do is;
deleting the entire row if BOTH 3rd and 4th column is blank at the same time.
If not (if any contains data) do nothing.
Also, I have merged cells (all 4 columns merged) in some rows and I would like them to be deleted too. Because at the end they don't contain data for 3rd and 4th column.
I tried my best coming up with this code but obviously it does not work;
Sub delete_empty_row()
Application.ScreenUpdating = False
Columns("D:D").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
If Selection.Columns("C:C").SpecialCells(xlCellTypeBlanks).Select Then
Selection.EntireRow.Delete
End If
Application.ScreenUpdating = True
End Sub