Listbox Selection

  • Thread starter Thread starter melissa
  • Start date Start date
M

melissa

hello, I need some assistance.

I would like to have the first item in my listbox be the default
selection.
Also, I would like the selection to move as the person scrolls through
the items.

It is a listbox with state abbreviations for an address.

I am using excel 2000.

Is this possible?
 
I would like to have the first item in my listbox be the
default selection.

After you load your items, use this line to select the first item...

ListBox1.ListIndex = 0

where I have assumed your ListBox is named ListBox1.
Also, I would like the selection to move as the person
scrolls through the items.

I'm not sure that is possible to do; but, if it was, it would be
non-standard.

Rick
 
After you load your items, use this line to select the first item...

ListBox1.ListIndex = 0

where I have assumed your ListBox is named ListBox1.


I'm not sure that is possible to do; but, if it was, it would be
non-standard.

Rick

thanks!
 

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

Similar Threads

Listbox ? 1
Access Cannot select items in listbox 1
Refresh Listbox 2
refresh listbox 2
Multi-select listbox - mousedown event 2
Multiple selection in listbox 2
How to set focus on an ActiveX ListBox 7
Excel listbox 2

Back
Top