loop through the array and check each item wether it fullfills the condition you are looking for
for example:
'1 form with:
' 1 command button: name=Command1
Option Explicit
Private mstrArray() As String
Private Sub Command1_Click()
Dim lngFoundIndex As Long
Dim strFind As String
strFind = "hre"
lngFoundIndex = FindValIndex(strFind)
MsgBox strFind & " found at index " & CStr(lngFoundIndex), vbInformation, "Result"
End Sub
Private Function FindValIndex(strVal As String) As Long
Dim lngIndex As Long
'set return value in case nothing is found
FindValIndex = -1
'loop through all items of the array
For lngIndex = 0 To UBound(mstrArray)
If InStr(mstrArray(lngIndex), strVal) > 0 Then
'set return value to found index
FindValIndex = lngIndex
Exit For
End If
Next lngIndex
End Function
Private Sub Form_Load()
'fill the array with some example data
mstrArray = Split("one,two,three,four", ",")
End Sub
The above code looks for items which are exactly the same as the string you are looking for. If you are looking for items containing the string you are looking for then you should have a look at the Instr() function
[EDIT]
I changed the above code to use Instr()