Listbox Highlight selection

C

cd

I have a listbox that I want to select the last row in the box and
scroll to that row.
Can I do this?

I used this statement
lbx_results.Selected(lbx_results.ListCount - 1) = True
 
D

Dave Peterson

Maybe something like:

With lbx_results
.TopIndex = .ListCount - 1
.Selected(lbx_results.ListCount - 1) = True
End With
 
Top