Userform Multiple Criteria Search Help!

bpaddock

New Member
Joined
Jul 14, 2010
Messages
1
Hello All,

I'm new to VBA so bare with me. I am trying to setup a userform that will allow the user to enter data and search my "Data" sheet and output the resulting rows into the "Results" sheet. The user form will have a combination of check boxes and txt boxes with one search button at the bottom. I want it to be able to search each criteria and narrow down the results if found, if nothing is entered in the box I just want it to skip over it and move on to the next search field.

What is the best way to approach this, there are so many different ways I've seen people do it. Will the .find command work for that many criteria? Will a VB loop work better?

I have already created the user form UserData. I have also added a Search button on the "Results" sheet to start the macro. I want the first 4 check boxes to correspond to column D starting at row 12. I need the check boxes, if checked to search for a string with the same label beside it.

If somone can just help me out getting started, I know i can fill in the rest. I just don't know how to setup a multi search criteria and filter the results and output them to another sheet.

Thanks,

Brian
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,214,982
Messages
6,122,575
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top