+ Reply to Thread
Results 1 to 12 of 12

How to get multiple selected items(list in another worksheet 2) populated in a single cell

  1. #1
    Registered User
    Join Date
    08-23-2014
    Location
    1285
    MS-Off Ver
    2007
    Posts
    21

    How to get multiple selected items(list in another worksheet 2) populated in a single cell

    Hi,

    I am stuck on a problem if anybody can help please.

    Problem : I want to achieve the below functionality in excel 2007:

    Step 1: The moment I click on A3 cell in worksheet1 , it will give me a list of names of the persons to choose from.
    Note: This list of names of the persons is stored in worksheet2, for example list is [radhika,deepak,kamini,suraj].

    Step2: So, from that list I can select one or many as per my requirement and the names which I select should appear in A3 cell only. for example , if I selected radhika & kamini, then A3 should contain both the values radhika & kamini seperated by a new line.

    Step 3: One more thing, the drop down should only be visible the moment I click on A3 and once data is selected, drop down should disappear and values get populated in A3 cell separated by new line in the same cell if more than 1 value is selected.

    Please if any excel expert can be help me on this, that would be very grateful.

    Regards,
    Anu
    Last edited by ANUARORA; 09-01-2014 at 01:38 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    Is there not some confusion between A3 and B3 ...?
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    08-23-2014
    Location
    1285
    MS-Off Ver
    2007
    Posts
    21

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    oops, yes I am talking about a single cell that is A3, so can ignore B3 or consider both as same..So, it's better to treat it as A3 only.

  4. #4
    Registered User
    Join Date
    08-23-2014
    Location
    1285
    MS-Off Ver
    2007
    Posts
    21

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    Any excel expert to help? I need this urgently please..

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    See here a possibility
    Try and comment
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    Here an update in case there is NO selection
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-23-2014
    Location
    1285
    MS-Off Ver
    2007
    Posts
    21

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    Hi,

    It works..Thanks a ton for the help :-),

    All the best!

    Regards,
    Anu
    Last edited by ANUARORA; 09-01-2014 at 01:37 PM.

  8. #8
    Registered User
    Join Date
    08-23-2014
    Location
    1285
    MS-Off Ver
    2007
    Posts
    21

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    Hi,

    Thanks for your help so far..If you can help me on more below thing that would be great.

    Currently,the above code will show the form for A3 cell, if I want to show the same form and want the same functionality to be performed for A4,A5,B3,B4,B5..is there any reusable way in excel to do that like passing these cell address as parameter to commandbutton click function in that form? Or any good way to achieve this? So, that can avoid unnecessary creation of multiple same forms for each cell and it becomes difficult to manage as well if the cell count is high on which functionality is required.

    Note: In my sheet, I will open another form also so can't make a generic click usage like initialize.I want only specific cells to open that form and other cella to open another form.

    Regards,
    Anu
    Last edited by ANUARORA; 08-26-2014 at 12:30 PM.

  9. #9
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    Hello Anu,
    Are cells "A3" and "A4,A5,B3,B4,B5" the only cells to work with or is it for all cells in sheet1.
    In others words is the list limited?
    PCi

  10. #10
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    See attached a new file with a more flexible macro.
    The same UderForm is used for all working cells.
    The selection of the cells is done in the sheet code
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-23-2014
    Location
    1285
    MS-Off Ver
    2007
    Posts
    21

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    You are awesome..Thanks PCI for your time and replying so proactively.. :-)

  12. #12
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: How to get multiple selected items(list in another worksheet 2) populated in a single

    Anu,
    It seems the story is done, it means just only the cells mentioned are needed; anyway if you have a look in the macro in sheet1's code you are certainly able to adjust it to your needs.
    In fact your issue was a pleasant thing which woke up a topic (Multi selection Listbox) I did not work with since a long time
    PCI

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pick multiple items from list and sort alphabetically in single cell
    By kawale in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-07-2021, 01:48 PM
  2. Replies: 1
    Last Post: 08-01-2013, 07:55 PM
  3. Replies: 4
    Last Post: 02-20-2013, 08:51 PM
  4. Replies: 0
    Last Post: 11-13-2012, 12:53 PM
  5. [SOLVED] Creating a grocery list in a new worksheet based on selected items in a master list
    By jacolli4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2012, 07:53 AM

Tags for this Thread

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