Highlight Listbox Selections

D

David J

I would like to highlight desired selection in a list box
based on an event other than clicking it. For example, I
would like to click on a button that highlights/selects
itemdata(0) and itemdata(1).

What would be the syntax used to highlight any item in a
listbox other than clicking in it.

Thanks
Dave J.
 
D

Douglas J. Steele

Me!MyListBox.Selected(0) = True
Me!MyListBox.Selected(1) = True

(replace MyListBox with the name of your list box)
 

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

Top