• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Find the word in Column A

Abhijeet

Active Member
Hi

I have data from that i want to find word KEY after find this word then below 14 rows i want to delete & this word in same column A more than 300 times so below this word 14 rows i want to delete can u please tell me how to do this
 
I tried to do this find the word Key then delete that row but i want next 14 rows also delete so please tell me how to do this
 

Attachments

  • Find the word & delete row.xlsm
    15 KB · Views: 4
Hi !

Demonstration to paste to worksheet module :​
Code:
Sub Demo()
             Dim Rg As Range
    With Me.UsedRange.Columns(1)
             Set Rg = .Find("Key", , xlValues, xlWhole)
        Do Until Rg Is Nothing
                 Rg.Resize(15).EntireRow.Delete
             Set Rg = .FindNext
        Loop
    End With
End Sub
Do you like it ? So thanks to click on bottom right Like !
 
Thanks Marc L its work perfect

actually i have 200 files more than 1 sheet this type of data
i have consolidate files in One workbook then delete is this ok or shall i delete each file please tell me
 

It depends on data, how many to delete …

I prefer to consolidate only desired data than all and delete undesired …
 
Back
Top