excel - Search word in String -


i have litte script in vba, checks if word exists in string.

example: searchtext "ean"

  1. cell: name jean-claude
  2. cell: have ean-number
  3. cell: ean number not allowed

that code

if text "*ean*" 'do 

my problem is, when search string ean have problem first cell. search if word occurs, not part of word.

i tried with:

if text instr(text, "ean") > 0 'do 

same problem. :-( idea.

greets, yab86


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -