I am looping through cells in a coulmn, and if the current cell and the cell below are both empty i would like to delete the entire row im currently in.
The code below is what i tried but it is not working. What is the solution?
The code below is what i tried but it is not working. What is the solution?
PHP:
For i = firstrow To 5000
If Cells(i, fincol) = "" And Cells(i + 1, fincol) = "" Then
Rows("i:i").EntireRow.Delete
End If
Next i