Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

A simple question

VB NewbieVB Newbie Member Posts: 206
How to tell the program to look for a certain text in a listbox?

Thanks,

VB Newbie

Comments

  • paulj59paulj59 Member Posts: 420
    : How to tell the program to look for a certain text in a listbox?
    :
    : Thanks,
    :
    : VB Newbie
    :

    Dim i As Integer
    With List1
    For i = 0 To .ListCount - 1
    If .List(i) = "certain text" Then
    MsgBox "Found"
    exit for
    End If
    Next
    End With
Sign In or Register to comment.