+ Reply to Thread
Results 1 to 5 of 5

Populating a Worksheet with values selected from a Dynamic Listbox

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Populating a Worksheet with values selected from a Dynamic Listbox

    I don't know how to populate a worksheet with the values selected from a userform listbox that has been populated dynamically from a named range.

    I can create a copy of the Master worksheet and name it based on the dropdown rooms, and I have got the listboxes to generate a

    checkbox list correctly, but am now unsure as how to get this information back onto the newly created sheet, as I am unsure what name each checkbox will have.

    Also can you pick up the text label of a checkbox which is set to true to use that as well.

    Any help would be appreciated. I have tried to upload my spreadsheet but the attachments manager says I don't have permission
    Attached Files Attached Files
    Last edited by hornbyOO; 04-09-2012 at 03:52 PM. Reason: File Added (Finally)

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Populating a Worksheet with values selected from a Dynamic Listbox

    let say you have some CheckBoxes and one CommandButton1 - try below code for test it

    Please Login or Register  to view this content.
    p.s. sorry it is not an answer for your question - I will think about it a bit ... ;-)
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  3. #3
    Registered User
    Join Date
    04-09-2012
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Populating a Worksheet with values selected from a Dynamic Listbox

    Sorry code doesn't work for me

    Run Time Error 438 Object doesn't support this object or method

    But thanks for looking

  4. #4
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Populating a Worksheet with values selected from a Dynamic Listbox

    I think you will do not need to know any name - your listboxes with style combobox have the same proberty for both ListStyle - so you always are able to refer to index of item
    put new userform - then listbox and 1 commandbutton then copy below code for test what I'm talking about
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-09-2012
    Location
    Blackpool, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Populating a Worksheet with values selected from a Dynamic Listbox

    Thanks, this certainly is a route to work with. Many Thanks

+ 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