Excel vba-Populating cascading drop down based on values in another sheet with ids -


how build cascading drop down in excel macro vba code below scenario.

main sheet has business process,sub business process , activity name in macro code written.all fields should drop down.

business process name , sub business data retrived data in businessprocess sheet. activity name retrieved activitysheet dependent on business process name or sub business process name applicable.

hierarchy bbusiness process--> sub business process name -->activity name

if no sub business process name bbusiness process--> empty -->activity name

business process sheet

businessprocessid | businessprocessname |subbprocessi | subbusinessprocessname 1                 |b1                   |null         | null 2                 |b2                   |3            | sub b1 2                 |b2                   |4            |sub b2 5                 |b4                   |null         |null 

activity sheet

businessprocessid | businessprocessname | activityid |  activityname 1                 |b1                   |1           |  a1 1                 |b1                   |2           |a2 2                 |b2                   |3           |a3 3                 |sub b1               |4           |a4 4                 |sub b2               |5           |a5 5                 |b4                   |6           |a6 

based on above 2 sheets main sheet should have below 3 fields drop down.

businessprocessname | subbusinessprocessname |activityname b1                  | null                   |a1 b2                  | sub b1                 |a4 b4                  |null                    |a6 

kindly in writing macro above considering 3 individual worksheets in excel.

to answer question how build dependent drop down. suggest start looking @ following links:

http://www.contextures.com/xldataval02.html

http://www.siddharthrout.com/2011/07/29/excel-data-validationcreate-dynamic-dependent-lists-vba/

the idea build sheet co-relational data (and maybe hide sheet) , use formulas in data validation list box refer co-relational data.

hope helps start off.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -