aka_krakur
Active Member
- Joined
- Jan 31, 2006
- Messages
- 438
I have started a user form and am pretty illiterate on how to get it to work for what I want.
Here is a sample of example data from a static table that I want to use for values for the user to select.
So in my userform I want the following:
Drop Down List for Division where user can select only one of DIV1 or DIV2.
After that is selected, I would want the next Drop Down List to populate with only the Product Segments for the Division they selected. And then after they select their Product Segment the next Drop Down List would autopopulate just the Product Family's that are within this Product Segment, and then of course the Part Numbers would autopopulate with only the one's within the Product Family that the user selects.
However, I want the Part Number to be a multiple selection to where the user can select multiple part numbers.
Then after their selection is complete, I want the values that they selected to export to say Sheet2 in respective cells, Division.Value in A1 Product Segment.Value in A2, etc.
I know I am asking a lot; but if one of the macro gurus could assist me I would really appreciate it.
Thanks
Here is a sample of example data from a static table that I want to use for values for the user to select.
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | DIVISION | PRODUCTSEGMENT | PRODUCTFAMILY | PARTNUMBER | ||
2 | DIV1 | SEG1 | FAM1 | 100001 | ||
3 | DIV1 | SEG1 | FAM1 | 100002 | ||
4 | DIV1 | SEG1 | FAM2 | 100003 | ||
5 | DIV1 | SEG1 | FAM2 | 100004 | ||
6 | DIV1 | SEG2 | FAM3 | 300005 | ||
7 | DIV1 | SEG2 | FAM3 | 300006 | ||
8 | DIV1 | SEG2 | FAM4 | 100007 | ||
9 | DIV1 | SEG2 | FAM4 | 100008 | ||
10 | DIV2 | SEG3 | FAM5 | 600009 | ||
11 | DIV2 | SEG3 | FAM5 | 600010 | ||
12 | DIV2 | SEG3 | FAM6 | 100011 | ||
13 | DIV2 | SEG3 | FAM6 | 100012 | ||
14 | DIV2 | SEG4 | FAM7 | 600020 | ||
15 | DIV2 | SEG4 | FAM7 | 600021 | ||
16 | DIV2 | SEG4 | FAM8 | 100031 | ||
17 | DIV2 | SEG4 | FAM8 | 100032 | ||
Sheet1 |
So in my userform I want the following:
Drop Down List for Division where user can select only one of DIV1 or DIV2.
After that is selected, I would want the next Drop Down List to populate with only the Product Segments for the Division they selected. And then after they select their Product Segment the next Drop Down List would autopopulate just the Product Family's that are within this Product Segment, and then of course the Part Numbers would autopopulate with only the one's within the Product Family that the user selects.
However, I want the Part Number to be a multiple selection to where the user can select multiple part numbers.
Then after their selection is complete, I want the values that they selected to export to say Sheet2 in respective cells, Division.Value in A1 Product Segment.Value in A2, etc.
I know I am asking a lot; but if one of the macro gurus could assist me I would really appreciate it.
Thanks