+ Reply to Thread
Results 1 to 3 of 3

Caption Multi Selected Items from Listbox to Label (One in Each Line)

  1. #1
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Caption Multi Selected Items from Listbox to Label (One in Each Line)

    hi all,

    i need your help please....I have a userform in excel....the listbox "listbox1" has over 1000 items....and i have a label "label5" also.

    what i want is if i select for example 10 items from the listbox1 to be shown in the label5 directly....and of course if i select or deselct any item will be applied in the label

    for example...selected items from listbox are;

    5
    6
    7
    8
    9

    the label will show me the same

    5
    6
    7
    8
    9

    please help me with the code while noting that the list box has many coumns...so i want to select which column to be appeared in label

    thanks

    original post: http://stackoverflow.com/questions/2...e-in-each-line

  2. #2
    Registered User
    Join Date
    06-21-2013
    Location
    Wiltshire, UK
    MS-Off Ver
    Excel 2007 / 2010 / 2013
    Posts
    70

    Re: Caption Multi Selected Items from Listbox to Label (One in Each Line)

    You would need to put some code in the ListBox_Change event. Loop through each row in the listbox and test for selected(), adding the relevant column value to label5.caption, eg
    Please Login or Register  to view this content.
    Isskint, i get satisfaction out of helping others

  3. #3
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Re: Caption Multi Selected Items from Listbox to Label (One in Each Line)

    thanks a lot

+ 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. [SOLVED] Listbox selected row to show on label caption
    By monkey1184 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-22-2013, 08:09 PM
  2. actionbased multi selected items in listbox
    By mido609 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2013, 11:42 AM
  3. [SOLVED] Find Multi Selected Items in Listbox in Range
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 07:53 AM
  4. multi select listbox, remove selected items.
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-25-2009, 08:39 AM
  5. Update label caption upon selecting Listbox item
    By munkayboi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2007, 04:55 PM

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