Excel VBA- How to do autoselect in a listbox

V

venkchar

Hi

Could you pls. let me know how I can do auto select in a listbox

If I have 4 items in the list box say a) apple

b) ball
c) cat
d) dog

When I type the first character of an item say d then it should
populate that item.

Any inputs will be appreciated.

Thanks
Venky..
 
B

BrianB

Use the ListBox Change event :-

Private Sub ListBox1_Change()
MsgBox (ListBox1.Value)
End Sub
 

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