OK, I have to do a little mind reading here. I think what you intended to do is to use the second column of the listbox to store the row number of the selected item where it appears on sheet VendorInfo. But the listbox only has one column, and that info is never stored.
I updated the properties of your listbox to have 2 columns, and made this update to your Search Sub:
And it seems to work but it's hard to check because I cannot figure how your tb_* variables are defined.
Then I get a type mismatch error at
The ListIndex value is 0 and so the array index is 1 but I can't figure out how arr is assigned values so I got stuck here. I did not want to sink more time into diagnosis at this point until you can explain how arr is being used.
Bookmarks