See attached file for specifics!
MFR List Exp2.xls
I have a UserForm from which I am doing 2 things: First it is used to enter new lines of data onto the worksheet, secondly I need to use the form as a search tool to look for existing data.
I have most of the code functioning for the UserForm, but I am struggling with the ListBox and getting the "searched" information into the proper boxes on the form.
GOAL:
I would like to be able to do a search on any one field, and (if possible) a combination of fields. When the search is completed, I need to be able to dblClick on any line within the listBox, and return all of the fields in the listBox to their appropriate spots on the UserForm.
The intent of this is to search for a value within the worksheet (i.e. MFR_ID) and return all of the values associated with whatever the user selects to the UserForm. I would then modify any lines needed and then add that NEW line of data into the WS.
If you have any questions regarding this question, the goal, or anything else, please let me know!
Anything to help this out would be GREATLY appreciated!
Also, since I am trying to learn VBA, could you supply a quick explanation for any code added. (NOT REQUIRED)
I am trying to familiarize myself with the code and its functions.
All I do at the moment is copy/paste code from other peoples projects, tweak them, and hope they work. This is the most code writing I have done thus far.
Thank you again!
Bookmarks