Excel Userform Search Command- Listbox displays results

KathyES93

New Member
Joined
Jun 6, 2017
Messages
2
I'm currently building a userform for work so that my colleagues can add suppliers details and search them too.
I am currently struggling to write a code for the search button, so that when either the textboxes or checkboxes are selected or entered - the results are listed in the listbox below.
The last time I used Excel for something like this, was years ago in school - so my memory is being tested.
I am using VBA in excel to construct my userform. I currently, dont have any code for what i am looking for as i have been unsuccessful for when i am trying to make it work. Basically, i have a search command button, which when textboxes or checkbox are filled in, once clicked on it will bring up results in the list box displayed below. I have 5 textboxes and 8 checkboxes. I have a datasheet which the data gets added to when the user enters the relevant information and clicks the add button.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,239
Messages
6,123,818
Members
449,127
Latest member
Cyko

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