Hi guys
I am a VBA Newbie and have found the posts on the forum to be incredibly helpful. I have a userform and what I would like to happen is when a user makes a selection from the combobox it populates a textbox on the userform. I was able to customise the following code I found on a thread in the forum:
This worked really well in populating the textbox, however, the problem I have is that I would like the code to display the value linked to the selection. At present, the selection made in the combobox and what is displayed in the textbox do not correspond.Please Login or Register to view this content.
e.g.
Name Nation Henry France Messi Argentina Ronaldo Portugal Rooney England Fabregas Spain
At the moment, when 'Messi' is selected the corresponding nation comes up as 'France' instead of Argentina. I don't think it is as simple as changing the number in the ListIndex because different users will be selecting different data so their positions will vary.
What do I need to adjust to ensure the two values remain linked?
Thanks in advance for your help.
Chris :)
Bookmarks