Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom,
Right click sheet 1 tab, view code and paste this in and ruen it:- Sub stance() Dim MyRange As Range Set MyRange = Sheets("Sheet2").Range("J3:J400") For x = 19 To 12 Step -1 myvalue = Cells(x, 1).Value For Each c In MyRange If myvalue = c.Value Then Rows(x).EntireRow.Delete Exit For End If Next Next End Sub Mike "Tom" wrote: Hi all, I have a range on sheet1 ("A12:A19"). I need to be able to look at that list and if any name from that list is found on sheet2 ("J3:J400") then delete the entire row that it is found in. Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
find text and delete rows. | Excel Discussion (Misc queries) | |||
Find and Replace - delete the remainder of the text in the cell after my Find | Excel Programming | |||
Find and Delete Row from Range | Excel Programming | |||
find text delete row | Excel Programming | |||
find and delete text, find a 10-digit number and put it in a textbox | Excel Programming |