Results 1 to 5 of 5

VBA Autofilter multiple criteria

Threaded View

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question VBA Autofilter multiple criteria

    Hello,
    Could anyone be so kind to help me to solve the last step in this code?


    Sub delete_error()
    
    ActiveSheet.Unprotect (password)
    With ActiveSheet
        .AutoFilterMode = False
        With Range("g4", Range("g" & Rows.Count).End(xlUp))
            .AutoFilter 1, "*Error*"
            On Error Resume Next
            .Offset(1).SpecialCells(12).EntireRow.Delete
        End With
        .AutoFilterMode = False
    End With
    ActiveSheet.Protect (password), DrawingObjects:=True, Contents:=True, Scenarios:=True, _
                         AllowSorting:=True, AllowFiltering:=True
    End Sub
    I would like to have another criteria in the filter ("Do not check"), but I could not figure out how to make it.
    Many thanks
    Last edited by arlu1201; 01-29-2013 at 04:27 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