A simple question

How to tell the program to look for a certain text in a listbox?

Thanks,

VB Newbie

Comments

  • : 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.

Howdy, Stranger!

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

Categories

In this Discussion