+ Reply to Thread
Results 1 to 4 of 4

ComboBox Data from Column

  1. #1
    Registered User
    Join Date
    01-21-2004
    Location
    Liverpool
    MS-Off Ver
    2003
    Posts
    88

    VBA Form ComboBox Data from Column

    Hi People,

    Just a quick question,

    How do a fill the contents of combox in a vba form with the data contained ion a column, rather then doing .Additem

    Thanks in advance
    Last edited by pauluk; 02-07-2005 at 08:45 AM.
    regards
    Paul
    http://www.frontlineuk.com
    FrontLineUK

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Use the ListFillRange property of the combo box, something like this:
    ComboBox1.ListFillRange = Range("A1:A10")


    - Mangesh

  3. #3
    Registered User
    Join Date
    01-21-2004
    Location
    Liverpool
    MS-Off Ver
    2003
    Posts
    88
    Tried this solution but it throws up a debugg box,

    Help

  4. #4
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    I am sorry, the list fill range property takes a string input, something like this:
    ComboBox1.ListFillRange = "Sheet1!A1:A10"


    - Mangesh

+ 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