Results 1 to 3 of 3

Find - Array - Delete Row Issue

Threaded View

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Find - Array - Delete Row Issue

    Greetings,
    1- Open enclosed file.
    2- Run Macro1.
    Sub Macro1()
    For i = ActiveSheet.Range("B" & Rows.Count).End(xlUp).Row To 2 Step -1
        On Error Resume Next
        ActiveSheet.Columns("B:B").Find(What:=Array("APPLE", "ORANGE"), LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).EntireRow.Delete
        On Error GoTo 0
    Next i
    End Sub
    Red line need to be corrected. (Because Macro1 only deletes APPLE involving cells, not ORANGE.) (I want to delete APPLE involving cells, and ORANGE involving cells.)
    Attached Files Attached Files
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Find Data in one array and match the position in another array
    By zeeman2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-27-2013, 07:55 PM
  2. Find a value in an array and return multiple values in an adjacent array
    By tonbra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 08:35 PM
  3. Not the typical "find, delete" row issue --need urgent help please!
    By Dragon120 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2007, 12:48 PM
  4. find each of the items in an array and save result in another array
    By lif in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2006, 08:54 PM
  5. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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