+ Reply to Thread
Results 1 to 8 of 8

array to fill combo box

  1. #1
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    array to fill combo box

    I'm currently having difficulties trying to fill a combo box from data on a spreadsheet. As in just one row.


    Please Login or Register  to view this content.
    then I'm stuck. Just don't know what to do from their to read up to the last row in a column for the combo box.

    Any help appreciated

  2. #2
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: array to fill combo box

    Please Login or Register  to view this content.
    editted code as it was to try and read data into a dropdown but no luck.. no errors prompted, or does anyone know an easier way to read excel information to a combo box?

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: array to fill combo box

    Please Login or Register  to view this content.

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

    Re: array to fill combo box

    notice that combobox listindex starts with index 0 whilst indexes of cells always starts from 1 - maybe it is a reason

    [tip] for fill out ComboBox you can use for example:
    Please Login or Register  to view this content.
    Best Regards
    MaczaQ

  5. #5
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: array to fill combo box

    @mac the range of the combo box can vary at any given time

    @bob the code you sent me alone enough to have the combo box drop down for column 5? or what else would be needed for it to read that?

  6. #6
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: array to fill combo box

    Change A1 to E1.

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: array to fill combo box

    Probably this suffices:

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by snb; 09-14-2011 at 06:48 AM.



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

    Re: array to fill combo box

    it could be also dynamic deffined Range
    Please Login or Register  to view this content.
    BR
    MaczaQ

+ 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