#1   Report Post  
Posted to microsoft.public.excel.misc
cardingtr
 
Posts: n/a
Default dropdown list


Supposed you have a drop down list "1,2,3,4,5,6,7."

How do you make it such that when you click on say 2 on the dropdown
list it will list two then when you click 3 on the same cell, it will
keep 2 and 3, and so on until you have something like a phrase.
(2,3,5,4..) on the same cell?

Thanks. This forum has always been helpful.


--
cardingtr
------------------------------------------------------------------------
cardingtr's Profile: http://www.excelforum.com/member.php...o&userid=27027
View this thread: http://www.excelforum.com/showthread...hreadid=517773

  #2   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default dropdown list

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

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

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


cardingtr wrote:
Supposed you have a drop down list "1,2,3,4,5,6,7."

How do you make it such that when you click on say 2 on the dropdown
list it will list two then when you click 3 on the same cell, it will
keep 2 and 3, and so on until you have something like a phrase.
(2,3,5,4..) on the same cell?


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.misc
cardingtr
 
Posts: n/a
Default dropdown list


Debra Dalgleish Wrote:
You can do this with programming. There's a sample file he

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

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


cardingtr wrote:
Supposed you have a drop down list "1,2,3,4,5,6,7."

How do you make it such that when you click on say 2 on the dropdown
list it will list two then when you click 3 on the same cell, it

will
keep 2 and 3, and so on until you have something like a phrase.
(2,3,5,4..) on the same cell?


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


Thanks for your suggested link.
It works but only for one column at a time. How can I make this formula
to work for all or multiple column in one sheet?
Thanks a lot. Here is the formula:
_________________________
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rngDV As Range
Dim oldVal As String
Dim newVal As String
If Target.Count 1 Then GoTo exitHandler

On Error Resume Next
Set rngDV = Cells.SpecialCells(xlCellTypeAllValidation)
On Error GoTo exitHandler

If rngDV Is Nothing Then GoTo exitHandler

If Intersect(Target, rngDV) Is Nothing Then
'do nothing
Else
Application.EnableEvents = False
newVal = Target.Value
Application.Undo
oldVal = Target.Value
Target.Value = newVal
If Target.Column = 4 Then
If oldVal = "" Then
'do nothing
Else
If newVal = "" Then
'do nothing
Else
Target.Value = oldVal _
& ", " & newVal
End If
End If
End If
End If

exitHandler:
Application.EnableEvents = True
End Sub
_________________________


--
cardingtr
------------------------------------------------------------------------
cardingtr's Profile: http://www.excelforum.com/member.php...o&userid=27027
View this thread: http://www.excelforum.com/showthread...hreadid=517773

  #4   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default dropdown list

Remove the line:
If Target.Column = 4 Then
and its End If

cardingtr wrote:
Debra Dalgleish Wrote:

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

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

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


cardingtr wrote:

Supposed you have a drop down list "1,2,3,4,5,6,7."

How do you make it such that when you click on say 2 on the dropdown
list it will list two then when you click 3 on the same cell, it


will

keep 2 and 3, and so on until you have something like a phrase.
(2,3,5,4..) on the same cell?


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



Thanks for your suggested link.
It works but only for one column at a time. How can I make this formula
to work for all or multiple column in one sheet?
Thanks a lot. Here is the formula:
_________________________
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rngDV As Range
Dim oldVal As String
Dim newVal As String
If Target.Count 1 Then GoTo exitHandler

On Error Resume Next
Set rngDV = Cells.SpecialCells(xlCellTypeAllValidation)
On Error GoTo exitHandler

If rngDV Is Nothing Then GoTo exitHandler

If Intersect(Target, rngDV) Is Nothing Then
'do nothing
Else
Application.EnableEvents = False
newVal = Target.Value
Application.Undo
oldVal = Target.Value
Target.Value = newVal
If Target.Column = 4 Then
If oldVal = "" Then
'do nothing
Else
If newVal = "" Then
'do nothing
Else
Target.Value = oldVal _
& ", " & newVal
End If
End If
End If
End If

exitHandler:
Application.EnableEvents = True
End Sub
_________________________




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #5   Report Post  
Posted to microsoft.public.excel.misc
cardingtr
 
Posts: n/a
Default dropdown list


Thanks Debra, it worked!


--
cardingtr
------------------------------------------------------------------------
cardingtr's Profile: http://www.excelforum.com/member.php...o&userid=27027
View this thread: http://www.excelforum.com/showthread...hreadid=517773



  #6   Report Post  
Posted to microsoft.public.excel.misc
EdMac
 
Posts: n/a
Default dropdown list


I don't think you can - that's not the way it's meant to work.

Drop downs are to select one option from the list, not multiple
selections. You would need to have a number of drop down boxes and
then CONCATENATE the results in another cell.

HTH

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=517773

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
Entering data from dropdown list Bruce M Excel Discussion (Misc queries) 8 February 8th 06 02:18 AM
HELP! Nesting IF Statements/Dependent Dropdown List Thomas Peters Excel Worksheet Functions 4 November 30th 05 05:38 PM
Jump to Sheet Dropdown List Mike Excel Worksheet Functions 1 August 9th 05 09:59 PM
how to create multiple hyperlinks within a dropdown list dan Excel Discussion (Misc queries) 0 June 29th 05 01:49 AM
HOW TO GET DROPDOWN LIST TO LINK TO OTHER CELLS? Vic Excel Discussion (Misc queries) 1 April 20th 05 01:59 PM


All times are GMT +1. The time now is 12:29 AM.

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"