Searching in a excel sheet with multiple conditions and multiple options

punna111

New Member
Joined
Nov 21, 2012
Messages
29
Hi Guys,

This is very challenging to me not for you, I am learning VBA just now....:confused:

I have excel sheet which has a lot of data in it. I am attaching a excel sheet with developed user form.
link for excel sheet.- Free Excel\VBA Help Forum

In the user form i have given some options, features i need to explain those.

option buttons (AND/OR)

when we are selecting multiple list boxes, with these options macro can search according to these options it means- "AND" is for two conditions should match, "or" means any one condition should match.


Check boxes (Exact match / Like match with *)

Exact match means given condition should match exactly. Like match means condition can be like it means partial match.(this match will be done by * symbol)

Combo boxes / List boxes

In the developed user form i have shown 2 combo boxes and 2 list boxes those are just showing purpose only. Normally the user form should display 1 combo box and 1 list box. but when we click on '+' button macro should display the another combo box and list box and also "-" button. with '-' button we can clear the new combo box and list box.

Combo boxes should contain some criterias as given in the excel sheet headings.
In List boxes user will type the data, for what he wants to search.

Command Buttons

with command button 3 another combo box and list box should display.

with command button 1 macro should search the sheet and display the result in sheet2,
after searching sheet 2 should open automatically. total row would be display in sheet 2 if the condition satisfies in a single cell.

I need a code for this macro..

Please let me know if any queries.

Thanks in advance....I am waiting for the reply...:ROFLMAO:

PRB.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi all,

Please find the attachment.
i have researched and given some code to do this...
but i need this with two conditions.
if we press + button we will get another criteria..i want to search with two criteria s. how can i? please help me

to open user form. please click on the pink button on the sheet 1.

link -www.excelforum.com/attachment.php?attachmentid=223110&d=1364055313

Thanks,
PRB.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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