Evening All,
I would be very appreciative if you can give me some sage advice, I'll do my best to explain.
I have a user form with textbooks and comboboxes for "First Name", "Last Name" and "ID Number". I also have a "Search" command button which, when a ID number is entered, will search for the corresponding names and populate the text/combo boxes. Clicking a "Save" command button, tosses all the info onto a sheet.
I have a filter set up so I can search for a name, by inputting into the "Name" textbook and all of the available options show in a listbox, which is also on the form e.g. if I search for "Dave" all of the Daves in the company will populate in the listbox.
It would be fantastic if I were able to select the desired "Dave" from the listbox and either copy the info to the sheet (as if I had clicked "Save"), or takes the data from the listbox and inputs it into the text/combo boxes on the userform and I can then press the "Save" command button.
So in summary, I choose Dave Spencer 11233 from the listbox and the user form populates as follows
(Textbox)First Name = "Dave"
(Textbox)Last Name = "Spencer"
(Combo) ID Number = "11233"
Click command button "Save" and it is all transferred to my desired worksheet.
I hope I explained it well and i am sorry to say that I do not currently have access to my code!!
Many thanks,
Dave
I would be very appreciative if you can give me some sage advice, I'll do my best to explain.
I have a user form with textbooks and comboboxes for "First Name", "Last Name" and "ID Number". I also have a "Search" command button which, when a ID number is entered, will search for the corresponding names and populate the text/combo boxes. Clicking a "Save" command button, tosses all the info onto a sheet.
I have a filter set up so I can search for a name, by inputting into the "Name" textbook and all of the available options show in a listbox, which is also on the form e.g. if I search for "Dave" all of the Daves in the company will populate in the listbox.
It would be fantastic if I were able to select the desired "Dave" from the listbox and either copy the info to the sheet (as if I had clicked "Save"), or takes the data from the listbox and inputs it into the text/combo boxes on the userform and I can then press the "Save" command button.
So in summary, I choose Dave Spencer 11233 from the listbox and the user form populates as follows
(Textbox)First Name = "Dave"
(Textbox)Last Name = "Spencer"
(Combo) ID Number = "11233"
Click command button "Save" and it is all transferred to my desired worksheet.
I hope I explained it well and i am sorry to say that I do not currently have access to my code!!
Many thanks,
Dave