+ Reply to Thread
Results 1 to 8 of 8

Can i select multiple names from a list

  1. #1
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Can i select multiple names from a list

    Hi,
    Please find attached sheet
    Column3 i have TrackLeads
    I have made use of the list there with 4 names
    If we use lists we can select only one name

    If i want to have 2 trackleads is it possible, how do i achieve it as shown in C14.
    Or is there anyway to get this kind of data by selection from dropdown.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can i select multiple names from a list

    No, not really, you would need to use VBA ...

    In the attached I created a multi select ListBox... and added some code such that when you select a cell within range C2:C20 (ie where you have previously used Validation) the ListBox defaults to reflect current selections (as inferred via names in cell) ... on alteration of selection the current cell updates accordingly.

    You might want to think about making this more elaborate - ie via double click and userform window but that's not an area within which I have any level of competence ... so perhaps you will get some other examples in addition to the attached illustration.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Can i select multiple names from a list

    Dear Thanks for your quick response
    one doubt i had
    if i had more names from l5 onwards how do they get reflected in teh multiple select box for me not coming
    Thanks
    max

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can i select multiple names from a list

    If you go into Design Mode and Right Click on the ListBox -> Properties -> ListFillRange -> revise accordingly

    Alternatively if you expect to change the listing frequently then you could think about creating a Dynamic Named Range (DNR) and using that as the ListFillRange.

    For more info. on DNR see: http://www.contextures.com/xlNames01.html

    NOTE:
    if your ListBox list does not contain all the names present in the cell at point of selection you will get an error.

  5. #5
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Can i select multiple names from a list

    Many thanks for your response , i would look at it
    Thanks
    max

  6. #6
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Can i select multiple names from a list

    Dear,
    I wanted to ask you one question regarding this issue
    You had passed me an excel with the code for multiple select.
    The problem i face is, in that sheet
    If my cursor is in any cell in sheet and if i goto the multiple select box and select values the cell where my cursor is places those values.
    For me i should restrict values to be placed only in Column C from say 2 to 100 when i click within the multiple select box and not any other cells,
    how can i achieve this please let me know
    thanks
    max

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can i select multiple names from a list

    Change the Worksheet_SelectionChange event per below (alterations in red):

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Can i select multiple names from a list

    Dear,
    Thanks you very much for the updates.
    Regards,
    max

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1