Hello Tom,
Here is the updated macro. If you don't specify a true/false response then the macro returns True or False.
Function IsWord(SearchString As String, SearchValues As Range, Optional TrueResponse, Optional FalseResponse)
Dim Item As Variant
Dim SearchItems As Variant
If IsMissing(TrueResponse) Then TrueResponse = True
If IsMissing(FalseResponse) Then FalseResponse = False
SearchItems = Split(SearchString, " ")
For Each Item In SearchItems
On Error Resume Next
WorksheetFunction.VLookup Item, SearchValues, 1, False
If Err = 0 Then IsWord = TrueResponse: Exit Function
Err.Clear
Next Item
IsWord = FalseResponse
End Function
Bookmarks