Results 1 to 5 of 5

If column dont contain 0 then delete row

Threaded View

  1. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: If column dont contain 0 then delete row

    as an option
    Sub DelSpecificRow()
    Dim r As Range, s As String
    Application.ScreenUpdating = 0
    s = "*, 0*": On Error Resume Next
    With Range("H1", Cells(Rows.Count, 8).End(xlUp))
        For Each r In .Cells
            If Not r Like s Then r = Empty
        Next r
        .SpecialCells(4).EntireRow.Delete
    End With
    Application.ScreenUpdating = 1
    End Sub
    Last edited by nilem; 10-13-2012 at 04:54 AM.

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