I'd like to cycle through about 1000 rows in a sheet and copy all rows that have data into another sheet. OR simply delete all the completely blank rows. Has any one got some code to do this?
Thanks lambuhere1. Works like a dream. I've chucked some code in to find the last row rather than going to a thousand, so it looks like:
Global IntRowStart As Integer
Sub Delete()
range("A1".Select
selection.End(xlDown).Select
ActiveCell.Offset(1, 0).range("A1".Select
IntRowStart = selection.Row
For i = IntRowStart To 1 Step -1
If Cells(i, 1).Value = "" Then
Cells(i, 1).Select
selection.EntireRow.Delete
End If
Next i
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.