itipu
06-18-2007, 03:37 AM
mdmackillop (http://www.vbaexpress.com/forum/member.php?u=87) kindly provided a code to remove rows based on "0" value.
Application.ScreenUpdating = False
With Cells
.Columns(1).AutoFilter Field:=1, Criteria1:="0"
.SpecialCells(xlCellTypeVisible).EntireRow.Delete
.Columns(1).AutoFilterMode = False
End With
Application.ScreenUpdating = True
This works lovely, except it removes headings as well!
Headings are in A1, B1 and so on...
Thanks a lot
Mike
Application.ScreenUpdating = False
With Cells
.Columns(1).AutoFilter Field:=1, Criteria1:="0"
.SpecialCells(xlCellTypeVisible).EntireRow.Delete
.Columns(1).AutoFilterMode = False
End With
Application.ScreenUpdating = True
This works lovely, except it removes headings as well!
Headings are in A1, B1 and so on...
Thanks a lot
Mike