Apologies if this is already here, but I have searched and cannot find a solution for my situation!
I have a userform with a listbox showing 3 columns. I would like to populate a text box with data when I select a row in the listbox. Columns 1 through 3 are shown in the listbox. When I click on an item I want column 4 from the row to be shown in the textbox.
The listbox is populated using this code: -
When I click on an item in the listbox this code is executed: -Please Login or Register to view this content.
Please Login or Register to view this content.
The above code also populates an image holder with a photo from the filepath of the worksheet matching the name of the item I click in the listbox. The problem I'm having however is with this line: -
All I get is a copy of the text shown in the listbox printed in the textbox. It appears to be ignoring the offset. It doesn't matter what I change it to!Please Login or Register to view this content.
Ideally what I want is: -
For columns 1 - 3 to show in listbox and when I click on it, column 4 (not shown in listbox) to populate textbox1.
Col1 Col2 Col3 Col4(not shown in listbox)
Name DOB Gender Address
Many Thanks in advance!
Bookmarks