RATE THIS ANSWER
0
Click to Vote:
0
0
Better late than never.
Why can't you just manually filter the data on that column? Anyway, here's a sub that should work. Untested.
Sub LoopThroughColumn()
Dim lCount As Long
Dim rFoundCell As Range
Dim MyBook As Excel.Workbook
Dim NextRow As Long
Set MyBook = Workbooks("Book1")
NextRow = WorksheetFunction.CountA(MyBook.Sheets(1).Range("B:B"))
Worksheets("SD").Activate
Set rFoundCell = Worksheets("SD").Range("B2")
For lCount = 1 To WorksheetFunction.CountIf(Columns(2), "drilling")
Set rFoundCell = Columns(2).Find(What:="drilling", After:=rFoundCell, _
LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, MatchCase:=False)
rFoundCell.EntireRow.Copy MyBook.Sheets(1).Range("A1").Offset(NextRow, 0)
Next lCount
End Sub
Last Answered:
Aug 30 2008 2:17 AM GMT by JP2112 
475 pts.