This works for me Beacon, I have replaced the collection for an array for performance:
Code:
Private Sub Command1_Click()
Dim Search(2) As String
Dim i As Integer
Dim intPos As Integer
Search(0) = "ccc"
Search(1) = "aurora"
Search(2) = "mining"
intPos = 0
For i = 0 To UBound(Search)
intPos = InStr(1, Text1.Text, Search(i))
If intPos > 0 Then
Open "C:\File.txt" For Append As #1
Print #1, Search(i) & " was found In (" & _
Text1.Text & ") at position " & intPos
Close #1
Else
msgbox search(i) & "not found."
End If
Next i
End Sub