excel help... drop down boxes/etc.

excel_user_1966

New Member
Joined
Mar 24, 2002
Messages
7
ok, i've got a drop down list box with things in it like Student1, Student2, Student3, etc etc..

When someone selects a name from this list, it puts the name last selected into a cell in excel.

I would like to know how to make it so that rather than write Student1, Student2 etc or whatever is selected into ONE specific cell, i want it to write either Yes or No into the column next to the selected student's name.

thanks for any help with this..

BTW, i've tried doing it with numbers... writing 1,2,3,4 etc. by their names, and then using vlookup etc as someone else suggested, but this isn't possible due to something i can't be bothered to explain now... just blieve me when i tell you i can't do it like that :(
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
but this isn't possible due to something i can't be bothered to explain now...

I can't be bothered to find an answer to somthing as vauge as this, I'd say others may feel the same (not that I can speak for them).

If you explain further I'll give it a go!!!
 
Upvote 0
On 2002-04-04 04:53, lying_happy_eyes wrote:
ok, i've got a drop down list box with things in it like Student1, Student2, Student3, etc etc..

When someone selects a name from this list, it puts the name last selected into a cell in excel.

I would like to know how to make it so that rather than write Student1, Student2 etc or whatever is selected into ONE specific cell, i want it to write either Yes or No into the column next to the selected student's name.

thanks for any help with this..

BTW, i've tried doing it with numbers... writing 1,2,3,4 etc. by their names, and then using vlookup etc as someone else suggested, but this isn't possible due to something i can't be bothered to explain now... just blieve me when i tell you i can't do it like that :(

Not 100% sure BUT
Try this;
1) combobox from the forms toolbox called
Dropdown1...you will see the name in the
formula name dropdown list when right clck
ob the shape.
2) Student names A1:A20
3) Name this range Students
4) link the droplist to any cell
(you already have this)
5) Paste this code into a Std module
6) link the shape to this macro

<pre/>
Sub DropDown2_Change()
Dim Ans

Set Ans = ActiveSheet.Shapes("Drop Down 2").ControlFormat

With Range("Students")
If .Item(Range(Ans.LinkedCell).Value).Offset(0, 1) = "YES" Then
.Item(Range(Ans.LinkedCell).Value).Offset(0, 1) = "NO"
Else
.Item(Range(Ans.LinkedCell).Value).Offset(0, 1) = "YES"
End If
End With

</pre>

Now when you select a student it will either
place a YES or NO in...the first time it will
place a YES if empty.

HTH

2)
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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