+ Reply to Thread
Results 1 to 2 of 2

Deleting Rows

  1. #1
    fak119
    Guest

    Deleting Rows

    For a Macro novice...

    Is there an easy macro that deletes rows when a particular cell has the
    value 0 (zero)?

    Thank you

  2. #2
    Don Guillett
    Guest

    Re: Deleting Rows

    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




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1