Thread
:
Delete Blank Rows
View Single Post
#
5
Posted to microsoft.public.excel.misc
Don Guillett
external usenet poster
Posts: 10,124
Delete Blank Rows
How about this?
Sub delblankrows()
lr = Cells.Find("*", Range("A1"), , , xlByRows, xlPrevious).Row
On Error Resume Next
For i = lr To 2 Step -1
If Rows(i).Find("*") Is Nothing Then Rows(i).Delete
Next i
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Heather" wrote in message
...
Hi, I need to find a way to delete wholly blank rows from a spreadsheet
that
also includes blank cells.
I tried F5special...radio button BlanksOK ctrl+- delete rows , but
that
also deletes rows that have data in them along with a blank cell!
Is there an equally neat way of deleting rows that have no data in them at
all, but leaving partial rows?
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett