T
Todd Huttenstine
Because of some unknown code problem in my other code I am
trying to write another to do the same thing. What this
code does is looks in cell C2 and then looks in range
B1:B200 to try and find a match. If it finds a match it
deletes it. How do I make this loop?
Dim rngJ As Range
Set rngJ = Workbooks("Book2.xls").Sheets
("Resolutions").Range("B1:B200").Find(Workbooks
("Book2.xls").Sheets("Resolutions").Range("C2")) 'where
lookup value
If Not rngJ Is Nothing Then
rngJ.Resize(, 1).Delete Shift:=xlShiftUp
Next rngJ
End If
trying to write another to do the same thing. What this
code does is looks in cell C2 and then looks in range
B1:B200 to try and find a match. If it finds a match it
deletes it. How do I make this loop?
Dim rngJ As Range
Set rngJ = Workbooks("Book2.xls").Sheets
("Resolutions").Range("B1:B200").Find(Workbooks
("Book2.xls").Sheets("Resolutions").Range("C2")) 'where
lookup value
If Not rngJ Is Nothing Then
rngJ.Resize(, 1).Delete Shift:=xlShiftUp
Next rngJ
End If