For example, let's say I have the following word and texts:
word = "bee"
text1 = "bla bla bee bla bla... "
text2 = "bla bla beep bla bla ..."
I want to return True for the first case and False for the second one.
After searching for a while, I've found a way to find a word in a text by using this:
If Application.IsNumber(Application.Search(word, text1)) Then 'returns True
If Application.IsNumber(Application.Search(word, text2)) Then 'returns True
But it returns True for both cases.
Is there an easy way (which would work with any word and text) to check if a text contains exactly the word that i'm looking for, but not inside other words?