Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Drop Down list that enables multiple selection..



Hi There,

I need to provide users with a list of 19 items, and would like to use a
normal drop down that enables multiple selectons. I need to be able to
see the results of the selections(in say the "answer" sheet. (If it
will make it easier, I can limit the max number of seletions to say 8)
The list is part of a larger spreadsheet where data is captured on a per
row basis.
(i have been able to get a drop down with the ability to select single
items to work for other parts of the spreadsheet, but have no idea how
to enable multiple selections)

Any ideas on where to begin would be most welcome!!!!!

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Drop Down list that enables multiple selection..

Darin,
You probably need a listbox which allows multiple selection.

Select the Control Toolbar (View==Toolbars==Control toolBar) and select a
list box control. Place on your worksheet and right click. select Properties
then MultiSelect ...1 fmMltiSelectMulti.

Use the ListFillRange (in Properties) to define your data list. e.g B20:B50

Add a command button to activate the processing of the listbox:

Private Sub CommandButton1_Click()
n=7
With ListBox1
For i = 0 To ListBox1.ListCount - 1
If .Selected(i) Then
.... assign data to "Answers"
e.g Worksheets("answers").Cells(n,"B")=.list(i)
n=n+1
End If
Next i
End With
End Sub

Hope this gets you started.

"Darin Kramer" wrote:



Hi There,

I need to provide users with a list of 19 items, and would like to use a
normal drop down that enables multiple selectons. I need to be able to
see the results of the selections(in say the "answer" sheet. (If it
will make it easier, I can limit the max number of seletions to say 8)
The list is part of a larger spreadsheet where data is captured on a per
row basis.
(i have been able to get a drop down with the ability to select single
items to work for other parts of the spreadsheet, but have no idea how
to enable multiple selections)

Any ideas on where to begin would be most welcome!!!!!

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Drop Down list that enables multiple selection..

Thanks - made a good start - I can see the box with options in it, but I
cant select any, ie Im just selecting the list box.

I got lost with your advice to "Add a command button to activate the
processing of the listbox":"

I can add the button, and assign the Macro to it, but then nothing
happens when I click it. (I also then have the list box, and anothe
button, but I think the button should be part of the access

Also as there needs to be many of these, it wont really work if I have
each one with its own list box and command button - ie gets to complex
to create and for users to duplicate. Something like multiple data
validation would be ideal.... but dont think its possible?

Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Drop Down list that enables multiple selection..

Darin,
If you want to send me an sample w/book with description of what
you want, I will see if I can offer a solution. We could spend a lot of time
sending notes via this NG so this might be a better option.

FYI, there needn't be a command button per listbox1 - one could "activate"
them all. If lists are dependent on each other i.e. selection from list2 is
related to list1 then there are other solutions.

My e-mail is

HTH

"Darin Kramer" wrote:

Thanks - made a good start - I can see the box with options in it, but I
cant select any, ie Im just selecting the list box.

I got lost with your advice to "Add a command button to activate the
processing of the listbox":"

I can add the button, and assign the Macro to it, but then nothing
happens when I click it. (I also then have the list box, and anothe
button, but I think the button should be part of the access

Also as there needs to be many of these, it wont really work if I have
each one with its own list box and command button - ie gets to complex
to create and for users to duplicate. Something like multiple data
validation would be ideal.... but dont think its possible?

Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!

*** Sent via Developersdex
http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Drop Down list that enables multiple selection..



Thanks! Ive sent u mail! :)

*** Sent via Developersdex http://www.developersdex.com ***


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Drop Down list that enables multiple selection..

You can do this with data validation and programming. There's a sample
file he

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

Under Data Validation, look for 'Select Multiple Items from Dropdown List'

Darin Kramer wrote:

Hi There,

I need to provide users with a list of 19 items, and would like to use a
normal drop down that enables multiple selectons. I need to be able to
see the results of the selections(in say the "answer" sheet. (If it
will make it easier, I can limit the max number of seletions to say 8)
The list is part of a larger spreadsheet where data is captured on a per
row basis.
(i have been able to get a drop down with the ability to select single
items to work for other parts of the spreadsheet, but have no idea how
to enable multiple selections)

Any ideas on where to begin would be most welcome!!!!!

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Filter multiple workbooks from drop down list selection mellors Excel Worksheet Functions 1 July 18th 10 04:09 PM
drop down list selection CandiC Excel Discussion (Misc queries) 1 November 30th 09 09:34 PM
Multiple selection drop down list The Bon Excel Worksheet Functions 2 April 8th 09 11:53 PM
Can I set up a multiple selection drop down list? Colder New Users to Excel 4 August 25th 06 06:12 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 01:59 PM.

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

About Us

"It's about Microsoft Excel"