+ Reply to Thread
Results 1 to 2 of 2

Dynamically populate combobox in userform

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    12

    Dynamically populate combobox in userform

    Hello again friends,

    I am trying to populate a combobox (inside a userform) with 2 columns. Like:
    COL 1 COL 2
    A 1
    B 2
    C 3
    ... and so on.

    I am using the list method (although i have tried with additem to no success either). What I need is for the box to display a list like:
    A : 1
    B : 2
    C : 3
    ... and so on (with the colom and all, although not as important. But ideally, I need to have a separator between each column item in each row)

    Here is the code I've have so far:
    Please Login or Register  to view this content.
    I'm getting strange behaviors, like the box being populated from rows 1 and 2 of the spreadsheet only from the first column.
    I am very confused with this.

    As always, I appreciate any advice

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Dynamically populate combobox in userform

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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