G
Guest
I have a FindInList() function which I pass a listbox, a search value, and a
column number (optional, if missing searches all columns, one row at a time).
The function searches the column(s) of the listbox for the first occurance
of the value that was passed, and selects that row.
However, if the row selected is below the last item currently displayed in
the list, the list will refresh itself and display the newly selected item at
the bottom of the list. I would prefer to have this item at the top of the
list, and know I can do this by first selecting the last item in the list,
then selecting the correct value, but this is a "brute force" method. I'm
hoping someone is aware of a technique that would not be as "forceful".
Thanks
column number (optional, if missing searches all columns, one row at a time).
The function searches the column(s) of the listbox for the first occurance
of the value that was passed, and selects that row.
However, if the row selected is below the last item currently displayed in
the list, the list will refresh itself and display the newly selected item at
the bottom of the list. I would prefer to have this item at the top of the
list, and know I can do this by first selecting the last item in the list,
then selecting the correct value, but this is a "brute force" method. I'm
hoping someone is aware of a technique that would not be as "forceful".
Thanks