+ Reply to Thread
Results 1 to 8 of 8

combobox row source

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    combobox row source

    Hi all

    with a combobox in VBA I use range for row source, but how do I use combobox, to list a1,b1,c1, etc

    probably something simple, or it can't be done lol..

    Please help
    Thanks
    Keith

  2. #2
    Registered User
    Join Date
    10-11-2011
    Location
    FB Republic
    MS-Off Ver
    2016
    Posts
    36

    Re: combobox row source

    hi.

    try

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: combobox row source

    Hello Keith
    • Is the combobox on a sheet or in a form?
    • Do you want to enter the contens of cel A1, B1, etc. or just the text "a1", "b1", etc.

    For a combobox named ComboBox1 on sheet1 you can load the contens of Cel A1 ..... into the Combobox when the workbook is opened.

    In this workbook:

    Please Login or Register  to view this content.
    Gr,
    Gerard

  4. #4
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: combobox row source

    Hi G e r a r d

    •Is the combobox on a sheet or in a form? yes its on a VBA form, combobox7
    •Do you want to enter the contens of cel A1, B1, etc. or just the text "a1", "b1", etc. just the text 1,2,3 etc

    Hi mancubus

    I altered the addtenms to the cells that have the numbers in, but nothing shows up when I look into the combobox7

    HTML Code: 
    Thanks for your rapid responses

    Keith

  5. #5
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: combobox row source

    Hi Keith,

    You better set items during initializing of form:

    Please Login or Register  to view this content.
    gr.
    Gerard

  6. #6
    Registered User
    Join Date
    10-11-2011
    Location
    FB Republic
    MS-Off Ver
    2016
    Posts
    36

    Re: combobox row source

    hi Quicksnot.

    Gerard has already replied that. put the code in UserForm's Initialize Event.

    BTW, if items are cell references rather than strings then use .AddItem Range("F1").Value, etc.

  7. #7
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: combobox row source

    lol sorry guys forgot how to mark solved

    Keith

  8. #8
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: combobox row source

    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Combobox source , linked to other combobox value ??(DYNAMIC)
    By stevnb in forum Excel Programming / VBA / Macros
    Replies: 40
    Last Post: 01-25-2013, 05:28 AM
  2. source for combobox on userform
    By carlton123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2008, 04:02 PM
  3. UserForm - ComboBox - Row Source
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2006, 09:02 PM
  4. Re: ComboBox Row Source across ALL sheets
    By Corey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2006, 12:10 AM
  5. [SOLVED] ComboBox Row Source across ALL sheets
    By Corey in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-04-2006, 02:00 AM

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