Hi Bill,
This is a very commonly asked question.
You can find several solutions in the Google archives.
http://www.google.com/advanced_group_search?q=group:*excel
Here is one solution posted on Jan 1/2000.
Regards,
Kevin
~~~~~~~~~~~~~~~~
This deletes any row that has a blank cell in column A. This should work
for you if that condition means the row is blank. Blank, of course, means
the cell is empty. With a text file, there could be spaces in the cell and
they only look blank.
Sub DeleteRows()
Set rng = Range(Cells(1, "A"), Cells(Rows.Count, "A").End(xlUp))
Set rng = rng.SpecialCells(xlBlanks)
rng.EntireRow.Delete
ActiveWorkbook.Close SaveChanges:=True
End Sub
Regards,
Tom Ogilvy
MVP Excel