I am a VBA novice. I am trying to create a user form that performs a search and returns cell values (mostly text) from an excel spreadsheet that is not already open.
The user form would have 1 box for the user to enter (type in) what they are looking for. They would then hit a search button. And It would populate 3 other boxes in the user form displaying values found on the same row but in other columns (like a vlookup).
I tried this with a drop down list I received from another post on the MrExcel forum but because I plan on adding additional search buttons that link to different spreadsheets the drop down combo box won’t work for me. Plus I didn’t get it right as it kept coding out on me.
I was informed it was best to use an array, but again my end-state is to have multiple search buttons so after reading a bit more it seemed an array would not work. Once I get it right once I’ll just plagiarize it adding the spreadsheet differences, error handling, etc. Any help would truly be appreciated.
The user form would have 1 box for the user to enter (type in) what they are looking for. They would then hit a search button. And It would populate 3 other boxes in the user form displaying values found on the same row but in other columns (like a vlookup).
I tried this with a drop down list I received from another post on the MrExcel forum but because I plan on adding additional search buttons that link to different spreadsheets the drop down combo box won’t work for me. Plus I didn’t get it right as it kept coding out on me.
I was informed it was best to use an array, but again my end-state is to have multiple search buttons so after reading a bit more it seemed an array would not work. Once I get it right once I’ll just plagiarize it adding the spreadsheet differences, error handling, etc. Any help would truly be appreciated.