For a Macro novice...
Is there an easy macro that deletes rows when a particular cell has the
value 0 (zero)?
Thank you
For a Macro novice...
Is there an easy macro that deletes rows when a particular cell has the
value 0 (zero)?
Thank you
try
Sub deletezerorows()
Application.DisplayAlerts = False
On Error Resume Next
vlr = Cells(Rows.Count, "d").End(xlUp).Row
With Range(Cells(2, "D"), Cells(vlr, "D"))
.AutoFilter Field:=1, Criteria1:="0"
..SpecialCells(xlCellTypeVisible).Delete
.AutoFilter
End With
Application.DisplayAlerts = False
End Sub
--
Don Guillett
SalesAid Software
[email protected]
"fak119" <[email protected]> wrote in message
news:[email protected]...
> For a Macro novice...
>
> Is there an easy macro that deletes rows when a particular cell has the
> value 0 (zero)?
>
> Thank you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks