Listbox Highlight selection

  • Thread starter Thread starter cd
  • Start date Start date
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
 
Maybe something like:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top