excel - Make string comparison case insensitive -
excel - Make string comparison case insensitive -
i've searched didn't find explained vba.
how create string comparison, such this, case insensitive:
if ubound(arr) > 0 each word in wordsarr each element in arr if word = element counter = counter + 1 next next else ' cell search empty counter = 0 end if
like this: lcase(word) = lcase(element)
or ucase(), if words in wordsarr lowercase (uppercase) can utilize lcase(ucase) on left side of comparison.
excel vba excel-vba
Comments
Post a Comment