TEST0011.beta.xlsm
Good Day Everyone,
I'm basically new to the fascinating world of VBA and I am very much willing to learn more about it. I've read a few forums about it as well in the hopes of being able to create a few simple userforms that will make my current job easier. I have a simple database which I want to turn into a simple "search engine", as you may call it. I already made a userform complete with the buttons I wanted it to have. What I'm stuck with, however, is how to have the Button perform a search function from sheet 2 based on whatever word they type on the textbox.
Simply put, here's a list of how I want to use my Userform:
1. Choose a category by ticking on the options "police department" and "states"
2. Select a State from the combobox
3. Type a part of the word (specifically a county) in the textbox.
(The textbox will auto populate a few other counties in reference to the selected state in the combobox, narrowing the search options)
4. On click of the Search button, Userform2 will show the results in a listbox. (Data to show here will be referenced from the workbook's sheet 2)
*As of now, I only have 2 columns of data in sheet 2, but I will need to eventually add a few more columns on that to show other data related to the items on column A but I wanted to have the userform working first so I can just add it once I collect all the data I need.
I would really appreciate anyone who can help me out on this. I tried to do this without a userform and just using simple vlookup formulas but my main objective is to not have the database (workbook) visible when using it. I wanted it as user-friendly as possible as this will be used by my team members and colleagues as deemed necessary.
I attached a test workbook for everyone to check out.
Hope anyone can help.
Thank you!
Bookmarks