Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sheet1, I have users select a project name in cell A1 from a list created
using a data validation range. In cell B1, I have created a combo box using the Control Toolbox toolbar. The purpose of the combo box is to look up the project name selected in A1 and then display 2 columns of information (CODE #, DESCRIPTION) for the user to choose from. The combo box will get its values from Sheet2 (using the ListFillRange property), where I have the following information listed: PROJECTS STATUS CODE # DESCRIPTION Project A A 10001 Plan 1 Project A A 10002 Plan 2 Project A A 10003 Plan 3 Project A A 10004 Plan 4 Project B A 20001 Plan 5 Project B A 20002 Plan 6 Project B A 20003 Plan 7 Project C A 30001 Plan 8 Project C A 30002 Plan 9 Project C A 30003 Plan 10 Project C A 30004 Plan 11 My problem is writing code for the click event of the combo box that looks up the value of Sheet1!A1, finds a match for it in the PROJECTS column on Sheet2, and then displays both the CODE# and DESCRIPTION options for that project in the combo box for the user to choose from. For example, if Project B is selected, I want the combo box choices to be CODE # DESCRIPTION 20001 Plan 5 20002 Plan 6 20003 Plan 7 I know how to set the properties of the combo box; I just need help with the code. Thanks! Steve C |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combo box - Listfillrange | Excel Discussion (Misc queries) | |||
ListFillRange not working | Excel Programming | |||
How to Set ListFillRange to Another Sheet | Excel Programming | |||
ListFillRange | Excel Programming | |||
ListFillRange | Excel Programming |