+ Reply to Thread
Results 1 to 5 of 5

Filling a combo box from the spreadsheet

  1. #1
    Registered User
    Join Date
    06-27-2006
    Posts
    9

    Filling a combo box from the spreadsheet

    Another, what I presume, simple request. I have a large dataset and I wish to create a combo box from one of the columns in order to create reports. Due to the sensitive information I'm working on, I have posted up a very simple dummy data file representing the names I wish to have in the combo box. The data set will have multiple lines and I want to avoid putting multiples of the name into the combobox. So I need a code that will loop through the column and perhaps storing them into an array that fills the combobox...

    I've had a go on my proper dataset but I haven't got anywhere... Any help would be greatly appreciated.

    Rob
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-25-2008
    MS-Off Ver
    Excel, Outlook, Word 2007/2003
    Posts
    245

    Re: Filling a combo box from the spreadsheet

    Quote Originally Posted by rob0r View Post
    Another, what I presume, simple request. I have a large dataset and I wish to create a combo box from one of the columns in order to create reports. Due to the sensitive information I'm working on, I have posted up a very simple dummy data file representing the names I wish to have in the combo box. The data set will have multiple lines and I want to avoid putting multiples of the name into the combobox. So I need a code that will loop through the column and perhaps storing them into an array that fills the combobox...

    I've had a go on my proper dataset but I haven't got anywhere... Any help would be greatly appreciated.

    Rob
    Use a new collection. Since a collection can't have duplicates, there will be an error. To avoid this behaviour, we will use on error resume next and reset this to on error goto 0 at the end of the coding.

    Charlize

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Filling a combo box from the spreadsheet

    There are various ways to do this. Here is one:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-25-2008
    MS-Off Ver
    Excel, Outlook, Word 2007/2003
    Posts
    245

    Re: Filling a combo box from the spreadsheet

    Please Login or Register  to view this content.
    Charlize

  5. #5
    Registered User
    Join Date
    06-27-2006
    Posts
    9

    Re: Filling a combo box from the spreadsheet

    Thanks for that, just about managed to get it sorted.

+ 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