Macro + outline + pick value + insert in different sheet as drop down

bluej

New Member
Joined
May 23, 2012
Messages
28
Hi All,

I have a sheet named "fruit-sheet" in the attached excel, i have 4 outlines (1 to 4) in it.

i need a macro code which does the below:

1) it should get the values which can be seen when outline is 1 (in this case fruits & veg can be seen.) & these values should be seen in sheet "DSR" as a dropdown in all the cells of column E

2) it should get the values which can be seen when outline is 2 (in this case apple, bananna, carrot, beetroot can be seen.) these values should be seen in sheet "DSR" as a dropdown in all the cells of column F
here there is another condition: In DSR sheet, if i select Fruits in col E, the values in the dropdown in col F should be only Apple & Banana
& if i select Veg in col E, the values ion the dropdown in col F should be only carrot & Veg

3) it should get the values which can be seen when outline is 3 (in this case bangalore, Hyd, mum, goa, chennai,delhi, maratahalli & st marks village can be seen.) these values should be seen in sheet "DSR" as a dropdown in all the cells of column G

here is one more condition: if i select fruits in col E & apple in col F, i should get only values bangaloe & HYD in col G

4)it should get the values which can be seen when outline is 4, these values should be seen in sheet "DSR" as a dropdown in all the cells of column H

one more condition: if i select fruits in col E & apple in col F, bangalore in col G, i should get below values as dropdown in col H:
Russel market
ONG market
Vijaynagar
Shantinagar
ulsoor
rajajinagar

<tbody>
</tbody>
5) if i select fruits in col E & apple in col F, bangalore in col G, Ulsoor in col H, i should get the corresponding row value from "fruit-sheet" (example in this case the row number is 9)

Please let me know if you need any more clarifications from my side.

Please help me out at the earliest.
below is the outline structure:


outline 1 -
fruits
Veg

<tbody>
</tbody>

Outline 2-
Fruits have Apple & banana & Veg have carrot & beetroot

outline 3-
Apple has- Bangalore & HYD
Banana has - MUm & Goa
Carrot has chennai & delhi
beetroot has maratahalli & st marks villgae

outline 4 has:
bangalore has:
Russel market
ONG market
Vijaynagar
Shantinagar
ulsoor
rajajinagar

<tbody>
</tbody>
Hyd has:
Russel market
ONG market
Vijaynagar
Shantinagar
ulsoor
rajajinagar
Mum has:
Russel market
ONG market
Vijaynagar
Shantinagar
ulsoor
rajajinagar
Goa has :
Russel market
ONG market
Vijaynagar
Shantinagar
ulsoor
rajajinagar

<tbody>
</tbody>

<tbody>
</tbody>

Chennai has:

Russel market
ONG market
Vijaynagar
Shantinagar
ulsoor
rajajinagar

delhi has:1
Russel market
ONG market
Vijaynagar
Shantinagar
ulsoor
rajajinagar
maratahalli has:
street b
street c
street d
street e
street f
street1
st marks village has:
street h
street i
street j
street k
street l
---------

<tbody>
</tbody>

Thanks,
BlueJ
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,949
Messages
6,127,888
Members
449,411
Latest member
AppellatePerson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top