Hello,
I am currently creating a form that will allow the user to select a portfolio, and then select an item in that portfolio using drop down menus. I have the Sheet being accessed set up in the following manor:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Portfolio List[/TD]
[TD]Portfolio 1[/TD]
[TD][/TD]
[TD]Portfolio 2[/TD]
[TD][/TD]
[TD]Portfolio 3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Portfolio 1[/TD]
[TD][/TD]
[TD]Item 1[/TD]
[TD][/TD]
[TD]Item 1[/TD]
[TD][/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Portfolio 2[/TD]
[TD][/TD]
[TD]Item 2[/TD]
[TD][/TD]
[TD]Item 2[/TD]
[TD][/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Portfolio 3[/TD]
[TD][/TD]
[TD]Item 3[/TD]
[TD][/TD]
[TD]Item 3[/TD]
[TD][/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Item 4[/TD]
[TD][/TD]
[TD]Item 4[/TD]
[TD][/TD]
[TD]Item 4[/TD]
[/TR]
</tbody>[/TABLE]
Now, i already have the portfolios listed in Column A (as shown) which is sourced to ComboBox1(aka Portfolio List). When the user selects the desired portfolio, the macro automatically searches Row 1 for the appropriate Portfolio and selects the associated cell.
What i need to figure out is, how do i set the rowsource for ComboBox2(aka Item List) to the items only associated with the selected portfolio instead of creating one really long list of items and having the user sift through them.
Additional Information:
Any ideas would be great, and if you need additional information please ask, I am usually fairly good and researching and finding the answer, but this one seems to be eluding me.
Thanks for any help you can offer,
Trey
I am currently creating a form that will allow the user to select a portfolio, and then select an item in that portfolio using drop down menus. I have the Sheet being accessed set up in the following manor:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Portfolio List[/TD]
[TD]Portfolio 1[/TD]
[TD][/TD]
[TD]Portfolio 2[/TD]
[TD][/TD]
[TD]Portfolio 3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Portfolio 1[/TD]
[TD][/TD]
[TD]Item 1[/TD]
[TD][/TD]
[TD]Item 1[/TD]
[TD][/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Portfolio 2[/TD]
[TD][/TD]
[TD]Item 2[/TD]
[TD][/TD]
[TD]Item 2[/TD]
[TD][/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Portfolio 3[/TD]
[TD][/TD]
[TD]Item 3[/TD]
[TD][/TD]
[TD]Item 3[/TD]
[TD][/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Item 4[/TD]
[TD][/TD]
[TD]Item 4[/TD]
[TD][/TD]
[TD]Item 4[/TD]
[/TR]
</tbody>[/TABLE]
Now, i already have the portfolios listed in Column A (as shown) which is sourced to ComboBox1(aka Portfolio List). When the user selects the desired portfolio, the macro automatically searches Row 1 for the appropriate Portfolio and selects the associated cell.
What i need to figure out is, how do i set the rowsource for ComboBox2(aka Item List) to the items only associated with the selected portfolio instead of creating one really long list of items and having the user sift through them.
Additional Information:
- There will never be a portfolio with more than 100 Items
- I have tried to use the ActiveCell.Offset(Row,Column).Select a couple of different ways. (eg. Rowsource = Sheet!ActiveCell.Offset(1,1):ActiveCell.Offset(100,1))
Any ideas would be great, and if you need additional information please ask, I am usually fairly good and researching and finding the answer, but this one seems to be eluding me.
Thanks for any help you can offer,
Trey