There is a code I am using to search for specific words in a VBA string. Currently I'm using InSTR:
tag1 = InStr(1, dish, keyword, vbTextCompare)
However the challenge is that the search is comparing strings and not words. E.g. If I'm searching for "egg" as a keyword in a string - Eggplant Pizza, it's returning a true value.
Ideally I would simply like to search if the word "egg" exists in a string. Is there a better function I can use?