Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default DROP DOWN LIST

Hey All,
I'm a little stuck in a programming frenzy here.

I know how to make a drop down list and how to validate and so on.

Anyway this is what I'm looking for:

Drop Down List Names:
Bill (Needs to be a value of 1 upon selection but still show the
name Bill)
Bob (Needs to be a value of 2 yada yada yada)
Sam (Needs to be a value of 3)

.........and so on.
This way I can take the number of times Bill did something and total them
together.

Just don't know how to get dual values on 1 drop down list.

Corey
MCP


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default DROP DOWN LIST

i've used something like this for using months in the dropdown. i set it as
a counter because i needed to subtract months for beginning and ending
periods to create how many times the loop ran. you should be able to set
variables to the person's name.

in my dropdown, i used a variable called speriod to store the value in the
cell containing the dropdown, January 2005, february 2005 and so on. then i
set the speriod end variable with this:sPeriodEnd = Left(Speriod, 3) (the
sheetnames are 3 characters)

hopefully this will help you.

If sPeriodEnd = "Jan" Then
cntE = 1
ElseIf sPeriodEnd = "Feb" Then
cntE = 2
ElseIf sPeriodEnd = "Mar" Then
cntE = 3
ElseIf sPeriodEnd = "Apr" Then
cntE = 4
ElseIf sPeriodEnd = "May" Then
cntE = 5
ElseIf sPeriodEnd = "Jun" Then
cntE = 6
ElseIf sPeriodEnd = "Jul" Then
cntE = 7
ElseIf sPeriodEnd = "Aug" Then
cntE = 8
ElseIf sPeriodEnd = "Sep" Then
cntE = 9
ElseIf sPeriodEnd = "Oct" Then
cntE = 10
ElseIf sPeriodEnd = "Nov" Then
cntE = 11
ElseIf sPeriodEnd = "Dec" Then
cntE = 12
End If

--


Gary


"Corey Heidenreich" wrote in message
...
Hey All,
I'm a little stuck in a programming frenzy here.

I know how to make a drop down list and how to validate and so on.

Anyway this is what I'm looking for:

Drop Down List Names:
Bill (Needs to be a value of 1 upon selection but still show
the name Bill)
Bob (Needs to be a value of 2 yada yada yada)
Sam (Needs to be a value of 3)

........and so on.
This way I can take the number of times Bill did something and total them
together.

Just don't know how to get dual values on 1 drop down list.

Corey
MCP



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default DROP DOWN LIST

Hello Gary,
Thanks for the info.
I'm still having some problems with the programming of it though
Here's my example

Team 1 Team 2 Team 3
C1 s1 f1
c2 s2 f2
c3 s3 f3
s4 f4
f5
f6



Team selection dd1
Member dd2

note: dd=dropdown

Both of the 2 above blanks are dropdowns.
The highlighted yellow is grouped as "Teams"
I have C1:C3 grouped as "Team1"
I have S1:S4 grouped as "Team2"
I have F1:F6 grouped as "Team3"
Currently Team Selection dd1 is validated as "Teams" which allows you to see
Team 1, Team 2, and Team 3 labels in the drop down
Then the members dropdown (dd2) is validated as =INDIRECT(dd1). So
whichever Team I select, it will give the correct team members for that
selection.
I just need the option to set a value to each team member (i.e. c1 = 20, c2=
21, c3 = 22, s1 = 23, etc.)

Hope this helps clarify where I'm going with this.

Corey








"Gary Keramidas" wrote in message
...
i've used something like this for using months in the dropdown. i set it
as a counter because i needed to subtract months for beginning and ending
periods to create how many times the loop ran. you should be able to set
variables to the person's name.

in my dropdown, i used a variable called speriod to store the value in the
cell containing the dropdown, January 2005, february 2005 and so on. then
i set the speriod end variable with this:sPeriodEnd = Left(Speriod, 3)
(the sheetnames are 3 characters)

hopefully this will help you.

If sPeriodEnd = "Jan" Then
cntE = 1
ElseIf sPeriodEnd = "Feb" Then
cntE = 2
ElseIf sPeriodEnd = "Mar" Then
cntE = 3
ElseIf sPeriodEnd = "Apr" Then
cntE = 4
ElseIf sPeriodEnd = "May" Then
cntE = 5
ElseIf sPeriodEnd = "Jun" Then
cntE = 6
ElseIf sPeriodEnd = "Jul" Then
cntE = 7
ElseIf sPeriodEnd = "Aug" Then
cntE = 8
ElseIf sPeriodEnd = "Sep" Then
cntE = 9
ElseIf sPeriodEnd = "Oct" Then
cntE = 10
ElseIf sPeriodEnd = "Nov" Then
cntE = 11
ElseIf sPeriodEnd = "Dec" Then
cntE = 12
End If

--


Gary


"Corey Heidenreich" wrote in message
...
Hey All,
I'm a little stuck in a programming frenzy here.

I know how to make a drop down list and how to validate and so on.

Anyway this is what I'm looking for:

Drop Down List Names:
Bill (Needs to be a value of 1 upon selection but still show
the name Bill)
Bob (Needs to be a value of 2 yada yada yada)
Sam (Needs to be a value of 3)

........and so on.
This way I can take the number of times Bill did something and total them
together.

Just don't know how to get dual values on 1 drop down list.

Corey
MCP





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
drop down list based on other drop down list pick Ruth Excel Discussion (Misc queries) 1 August 25th 09 04:12 PM
Drop down list dependant on previous drop down list Tenacioushail Excel Discussion (Misc queries) 1 July 1st 08 11:35 AM
Drop down lists that auto create and then filter the next drop down list [email protected] Excel Worksheet Functions 2 September 30th 07 11:53 AM
Drop Down List choice selecting another drop down list CVD0722 Excel Worksheet Functions 3 October 31st 06 01:02 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 02:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"