>>>There is a way w/o looping. Set the value and check listindex. However since listboxes can't add much items with this approach you might not need to gain such a performance. Its slowness would be masked with few elements anyway.
>>>Cetin
>>
>>Thanks, Cetin. You're right, usually these lists are very short, so I decided to write this simple code using looping.
>>
>>Thanks again.
>
>Silly me. Once again knowing what you'd do at the end wasted my time to answer.
>Cetin
I think I misunderstood your idea then. Would you please elaborate?
Yesterday I already implemented loop idea, in my case I only have a few (less than 5) items in the list.
If it's not broken, fix it until it is.
My Blog