hello everyone,

I am trying to check each letter of a word if that word doesn't contain (AEIOUY) then I have to append (-way) to the end of the word. Now I have this if statement and it doesn't work:

If OriginalWord.ToUpper Like "*[!AEIOUY]*" Then
Label1.Text = OriginalWord & "-way"
End If
any suggestion to make it work. I need to append a (-way) to the end of a word that doesn't have (AEIOUY)

thank you guys


try OriginalWord.ToUpper Like "*[AEIOUY]*"

The pattern is "anything" followed by "any vowel" followed by "anything". Just leave out the "!"

Member Avatar