That is not a function. Looking at the other thread where you had posted your requirement, following code should do fine.i guess it is a function, i dont know how to run a function, will u plz guide
Public Sub FindData()
Dim lLastRow As Long
With Sheet1
lLastRow = .Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To lLastRow
If InStr(1, .Range("A" & i).Value, "10-") > 0 Then
.Rows(i).Copy Destination:=Sheet2.Range("A" & Rows.Count).End(xlUp)(2)
End If
Next i
Application.CutCopyMode = False
End With
End Sub
Sub FindData()
Dim lLastRow As Long
With Worksheets("Filings")
lLastRow = .Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To lLastRow
If InStr(1, .Range("A" & i).Value, "10-") > 0 Then
.Rows(i).Copy Destination:=Sheet2.Range("B" & Rows.Count).End(xlUp)(2)
End If
Next i
Application.CutCopyMode = False
End With
End Sub