TIA, AlanN
Sub DeleteRows()
Dim Rng1 As Range
Dim Rng2 As Range
Set Rng1 = Intersect(Selection.Cells(1).EntireColumn, Selection.Parent.UsedRange)
Rng1.Replace 0, "", xlWhole
On Error Resume Next
Set Rng2 = Rng1.SpecialCells(xlCellTypeBlanks)
If Rng2 Is Nothing Then
'nothing to delete
Else
Rng2.EntireRow.Delete
End If
End Sub
AlanN
"Myrna Larson" <myrna...@charter.net> wrote in message
news:gd505v86bcmpln2g2...@4ax.com...
"Myrna Larson" <myrna...@charter.net> wrote ...
> First I clear the cells containing 0. Then I use one of XL's special selection
> commands to select the blank cells. Then I delete those rows.
> [clipped out sample macro]