I've being trying to work out a problem i've being having for a while now and i'm not sure if i'm over complicating it.

When a form loads, it uses a for next loop to load an array of peoples names into a list box. However i want to extract the persons ID once their name has being clicked. I can make this work by using another for next loop until the selected name matches the an array number. However it fails if there are two people of the same name.

Is there a command or piece of code that can extract the row number of the item selected?

This problem has being bugging me for weeks now and any help would be much appreciated.