+ Reply to Thread
Results 1 to 23 of 23

Selectable list box

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-03-2007
    Location
    Burleson, TX, USA
    MS-Off Ver
    2010
    Posts
    132

    Selectable list box

    Hello all,

    Can a list box (or other type) be created that would come up and allow a selection of multiple items. I do not need the items to be viewable beyond the selection, only to be ablle to sum different segments of the rows that were selected.

    As example: Upon clicking in cell B 141 of the sheet a box would come up that would include the descriptions (in column C) of all items that are between rows 1 and 140 that have identifeid by a "y" in Column B. Then you could select as many as you desired and the sum of the quantity (column d) of the selected items would then appear in D141.

    Would something like this be possible?

    Thanks,
    Mark

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Set the .MultiSelect property of the list box to True.

  3. #3
    Forum Contributor
    Join Date
    02-03-2007
    Location
    Burleson, TX, USA
    MS-Off Ver
    2010
    Posts
    132
    Thanks for the reply, however I know nothing about the creation of a list box. Could you help with a little additional info?

    Thanks,
    Mark

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Yes, but after I'm off work. (Your problem is more complicated than I thought. Poor time mgt on my part.)

  5. #5
    Forum Contributor
    Join Date
    02-03-2007
    Location
    Burleson, TX, USA
    MS-Off Ver
    2010
    Posts
    132
    Great!!! I look forward to it. This is a problem I have wanted solved for a long time. I have tried every way and failed.

    Thanks,
    Mark

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    I haven't abandoned the problem. I'm having trouble reading a multi-select forms list box. I think the way to go is:

    When B141 is selected a userform is created. It has the list box you want and a cancel button and an OK button.

    Select the items you want and the running total will be put into D141.

    Press Cancel, everything disapears and the old value is restored.
    Press OK, userform goes away, leaving the new sum in D141.

    Selecting a different cell when the userform is present is the same as pressing OK.

    What version do you have, (i.e. is it '97 with only modeless uForms?)

  7. #7
    Forum Contributor
    Join Date
    02-03-2007
    Location
    Burleson, TX, USA
    MS-Off Ver
    2010
    Posts
    132
    It is working now -- Thank you very much.

    mark medlin

+ 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