Here’s a Visual Basic code that will check if the string is an Item in Combo Box. Feel free to use it.


Dim inCombo as Boolean
Dim ctr as Integer
Dim strToSearchFor as String

strToSearchFor = "this is the string"

ctr = 0
do while ctr < combo1.listcount - 1
if (combo1.list(ctr) = strToSearchFor) then
inCombo = True
end if
ctr = ctr + 1
loop

LEAVE A REPLY

This site uses Akismet to reduce spam. Learn how your comment data is processed.