+ Reply to Thread
Results 1 to 8 of 8

userform combobox to look up list in sheet

  1. #1
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Melbourne,Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    userform combobox to look up list in sheet

    Hi

    I have created a Userform . Can some code be added to my code for the userform to have the following

    For combobox9 I need code to look at sheet "tools" starting in cell C4 to C100 and make that list available in combobx9

    For Combobox10 I need code to look at sheet "tools" starting in cell C4 to C100 and make that list available in combobx10

    My code for userform below

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: userform combobox to look up list in sheet

    Hi H_Kennedy,

    Not sure why combobox9 and combobox10 have the same reference (typo?) but this this will do job as part of your form's initialize script:

    Please Login or Register  to view this content.
    How's the weather in Melbourne today? We've had a warm one in Sydney.

    Cheers,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Melbourne,Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: userform combobox to look up list in sheet

    Hi Robert

    Thank you....weather is mild....comfortable

    Yes sorry my mistake should have been
    For combobox9 C4 to C100 and make that list available in combobx9
    For Combobox10 E4 to E100 and make that list available in combobx10

    Should I place the code as follows
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: userform combobox to look up list in sheet

    Should I place the code as follows
    Yes, that's right. You have a Next statement without an accompanying For statement which will error out when you try and open the form I would image. Delete or comment that out and all should be right to go.

    Regards,

    Robert

  5. #5
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Melbourne,Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: userform combobox to look up list in sheet

    Thanks

    The userform now has a list for each combobox but it is reading from the wrong sheet.It is reading from the sheet where the userform commandbutton is situated

    Any thoughts please?

    Thank you

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: userform combobox to look up list in sheet

    I'd suggest looping through each range and populating the relevant combo box that way, i.e.

    Please Login or Register  to view this content.
    Robert

  7. #7
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Melbourne,Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: userform combobox to look up list in sheet

    Thanks Robert for your help...that works fine

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: userform combobox to look up list in sheet

    That's great. If you could mark the thread as solved it would be appreciated.

    Robert

+ 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] Userform if not in combobox then add to list
    By ratdogexcel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2013, 11:40 AM
  2. [SOLVED] Make combobox list options dependant on selection in another combobox within a userform
    By Vladimir_Dobvchenko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-23-2013, 05:30 AM
  3. list of printers in a combobox on a userform
    By davisok in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2013, 05:39 AM
  4. [SOLVED] Userform ComboBox.List Location and Active Sheet Issues
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2013, 09:55 PM
  5. Copy and Paste from one sheet to another sheet - userform - combobox
    By ahhbunny in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 09:49 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