+ Reply to Thread
Results 1 to 6 of 6

Need help with populating Listbox from another Listbox(selection); across userforms.

  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague, Czech rep.
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    138

    Need help with populating Listbox from another Listbox(selection); across userforms.

    Hello everyone,

    this is my first post on this forum. I came here to search the guidance cause even though uncle google is pretty strong tool he is not boundless. I´ve always managed to find what I needed up till now, spent a LOT o´time searching and just couldnt hit the spot. So I´ve registered and writing these lines kind of a last instance where to find the solution.

    Ok enough of the background story, back to the business. Here is my issue I´ve failed to solve:

    I have a listbox filled with variable range (converted from header to fit the list order) with multiselect property and I need to take all the selected values by the user and populate them to another listbox in another userform - all is working apart from the data transfort within the userforms.

    I can export data to worksheet and then upload em to the correct lbx OR I´m also able to make it within the one userform (even with the look of that the userform has actualy changed) but that is not what i want. I know it might sound a bit freaky of me, to have one solution on which to dwell but thats who I´m i need the cleanest and most perfect way (at least to my knowledge and in my eyes) possible and therefore any workaround is not good enough for me...:-(

    any ideas how to address this issue? I´ve tried to make the selected range as a variable value and use it with the additem method which proved to be flawed in this scenario, have tried many other stuff but all attempts just failed.

    Hope there will be someone to know what to do or else it will bug me to the ground...:-(

    Best regards

    Soul

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Need help with populating Listbox from another Listbox(selection); across userforms.

    Can you post the code you have so far please?

  3. #3
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague, Czech rep.
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    138

    Re: Need help with populating Listbox from another Listbox(selection); across userforms.

    Ofc i can, not sure it helps since the issue I´ve described seems as a stand alone thing but here it goes

    Please Login or Register  to view this content.
    if i use msgbox for the "text" value it shows the list precisely as i want to input it to the next userform´s listbox but i just cant get it there

    EDIT: this code is all working btw. all my attempts are not there (and they are nowhere to be found since if it doesnt work and i dunno how to make it work i delete it)
    Last edited by SoulPrisoner; 08-28-2013 at 09:19 AM. Reason: additional info

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Need help with populating Listbox from another Listbox(selection); across userforms.

    maybe:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague, Czech rep.
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    138

    Re: Need help with populating Listbox from another Listbox(selection); across userforms.

    lol...so easy...and i would bet my pants i´ve tried that one aswell, well prolly not!

    (its kinda same solution as if you´re populating the second lbx within the same useform funny)

    well, THX a lot, it works as intended and its absolutely marvelous, I knew i´ll get the helping hand here.

    Best regards

    Soul

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Need help with populating Listbox from another Listbox(selection); across userforms.

    No problem, glad it helped

+ 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. Populating a Range of Cells from a ListBox Selection
    By cmaitlen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2012, 07:06 PM
  2. Userforms and Using ListBox Selection in a Formula
    By Babybio77 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2011, 05:19 AM
  3. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 AM
  4. Populating a userform based on a listbox selection
    By hey1000 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-21-2010, 02:54 AM
  5. Populating listbox on the basis of Combo box selection.
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2010, 04:41 AM

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