Select lines from a ListBox.

9048679 Posted messages 18 Registration date   Status Member Last intervention   -  
 Paf -
Hello,
I would like to know if there is a code in Visual Basic that allows selecting (one after the other) the lines of a ListBox...

For example, I start a Timer and I want it to select a line from the ListBox every second, then the following second it selects the next line, and so on...

If you don't understand, feel free to PM me or mention it in a comment.

1 answer

Paf
 
Hello,

even if it doesn't exactly meet the request, a suggestion

For i = 0 To ListBox1.ListCount - 1 ListBox1.ListIndex = i Application.Wait (Now + TimeValue("00:00:01")) Next


Best regards.
0