Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Filter based on users selection

Status
Not open for further replies.

deante

Technical User
May 26, 2005
34
US
I am creating an application for my company that is a parts list. The goal is for maintenance techs to find part numbers quickly rather than looking in a manual.

I have a long excel file that is has the following headings:

Line MACHINE Area DRAWING # PART # Description


I want to create combo boxes that a user can select a line and machine area and it automatically filters the list so that only the parts for that particular area and line are displayed. I can create the macro to filter the list but can not create the combo boxes, without repeating the values for options.

Thanks in Advance

Deante
 



Hi,

You can use Advanced Filter to create a unique list of items. Leave CRITEIA blank and Copy to another location. Use that Unique list as the ListFillFange for your ComboBox.

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 



I sent too quickly.

However, I prefer to use MS Query, Using MS Query to get data from Excel faq68-5829, with SQL like this...
Code:
Select Distinct Machine From [Sheet1$]
You only need ADD the querytable One Time. After that, all you need to is Refresh the QueryTable if your source data changes.

I use Dynamic Named Ranges, How can I rename a table as it changes size faq68-1331, to name my lists and column ranges in tables, so that when my ListFillRange changes, the Named Range will always reflect the correct range.


Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top