Results 1 to 7 of 7

Populating ComboBox

Threaded View

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    41

    Populating ComboBox

    I got a row in rangaes A1: A10

    I assume that I do not know where it ends and I would like to transfer these values into a combobox and dont need to worry about Unique Values. Am I right in using the do while loops (or do loop untils)

    Private Sub frmOptions_Initialize()
        Application.ActiveWorkbook.Worksheets("Sheet1").Activate
        ActiveWorkbook.Worksheets("Sheet1").Range("A1").Select
        
        Do
            ComboBox1.AddItem ActiveCell.Value
            ActiveCell.Offset(1, 0).Select
        Loop While Not IsEmpty(ActiveCell)
        
    End Sub
    The thing is, its not working though, Thanks in Advance!
    Last edited by alansidman; 09-21-2013 at 08:19 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Populating combobox 2 with items that match criteria from combobox 1
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-13-2013, 03:00 AM
  2. Removing Duplicates from ComboBox and Populating one combobox based on another
    By kbmtech in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2010, 11:17 PM
  3. Populating the list in a combobox based off the value chosen in another combobox
    By Mervil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2010, 11:50 AM
  4. (De)Populating combobox
    By panthers7171 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-27-2009, 06:53 PM
  5. combobox populating
    By burgerboy2k6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2007, 08:58 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