I am looking for some assistance with VBA as I am extremely new to this...
I have a drop down menu in cells D8:D28 that have 5 options (Elec, Mech, Op, C/Over and Project). I want to stop people selecting either Elec or Mech unless there is a numeric value in cell N8:N28.
Please if anyone can help I would be greatly appreciative.
Regards,
Darren
Hi,
create the dropdown from a duplicate list linked to the original one and give a condition to it so it can be dynamic as showed below.
[TABLE="width: 348"]
<tbody>[TR]
[TD="class: xl62, width: 94"]Original List[/TD]
[TD="class: xl62, width: 99"]Duplicated List[/TD]
[TD="class: xl62, width: 64"][/TD]
[TD="class: xl62, width: 91"]Values[/TD]
[/TR]
[TR]
[TD="class: xl62"]a[/TD]
[TD="class: xl62"]a[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]1[/TD]
[/TR]
[TR]
[TD="class: xl62"]b[/TD]
[TD="class: xl62"]b[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]2[/TD]
[/TR]
[TR]
[TD="class: xl62"]c[/TD]
[TD="class: xl62"]c[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]3[/TD]
[/TR]
[TR]
[TD="class: xl62"]d[/TD]
[TD="class: xl62"]d[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]4[/TD]
[/TR]
[TR]
[TD="class: xl62"]e[/TD]
[TD="class: xl62"]e[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]5[/TD]
[/TR]
[TR]
[TD="class: xl62"]f[/TD]
[TD="class: xl62"]f[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]6[/TD]
[/TR]
</tbody>[/TABLE]
Formulas:
[TABLE="width: 696"]
<tbody>[TR]
[TD="class: xl62, width: 188"]Original List[/TD]
[TD="class: xl62, width: 198"]Duplicated List[/TD]
[TD="class: xl62, width: 128"][/TD]
[TD="class: xl62, width: 182"]Values[/TD]
[/TR]
[TR]
[TD="class: xl62"]a[/TD]
[TD="class: xl62"]=IF(F2<>"",C2,"")[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]1[/TD]
[/TR]
[TR]
[TD="class: xl62"]b[/TD]
[TD="class: xl62"]=IF(F3<>"",C3,"")[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]2[/TD]
[/TR]
[TR]
[TD="class: xl62"]c[/TD]
[TD="class: xl62"]=IF(F4<>"",C4,"")[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]3[/TD]
[/TR]
[TR]
[TD="class: xl62"]d[/TD]
[TD="class: xl62"]=IF(F5<>"",C5,"")[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]4[/TD]
[/TR]
[TR]
[TD="class: xl62"]e[/TD]
[TD="class: xl62"]=IF(F6<>"",C6,"")[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]5[/TD]
[/TR]
[TR]
[TD="class: xl62"]f[/TD]
[TD="class: xl62"]=IF(F7<>"",C7,"")[/TD]
[TD="class: xl62"][/TD]
[TD="class: xl62"]6[/TD]
[/TR]
</tbody>[/TABLE]