I have the code below
if I search like i want to search the word "terminate" and I will only enter the word "ate", it will still find "terminate" which I want to search by exact search criteria. so if I type "ate", it will not give me "terminate".
.
Code:
Private Sub FindText(ByVal start_at As Integer)
Dim pos As Integer
Dim target As String
target = LCase(Text1.Text)
pos = InStr(start_at, findtext.text, target, vbTextCompare)
If pos > 0 Then
bool = True
Else
bool = False
End If
End Sub
if I search like i want to search the word "terminate" and I will only enter the word "ate", it will still find "terminate" which I want to search by exact search criteria. so if I type "ate", it will not give me "terminate".
.