+ Reply to Thread
Results 1 to 7 of 7

Populate Combobox with data from seperate workbook

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Populate Combobox with data from seperate workbook

    Hi, I would like to populate a Combobox with data contained in a separate workbook.

    The workbook is Busstops.xlsm and the range is "stopnames"

    thanks

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Populate Combobox with data from seperate workbook

    Right click on Combobox - Format Control. On tab Control in Input range: write =stopnames

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Populate Combobox with data from seperate workbook

    Hi kasan, I do not follow what you are saying here

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,313

    Re: Populate Combobox with data from seperate workbook

    @ kemit

    Please close your other thread regarding the same issue.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Populate Combobox with data from seperate workbook

    kemit,
    Are you using Form Control Combobox or AxtiveX Combobox? It would be better if you could upload sample file with your combobox and range of values you wish to populate

  6. #6
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Populate Combobox with data from seperate workbook

    I initially wanted to use a Userform with the combobox in it but if a form control combobox will work then I will use it. The problem is that the sheet on which the combobox is in a totally separate file (Model.xlsm) to where the data is stored in (Busstops.xlsm).

  7. #7
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Populate Combobox with data from seperate workbook

    Attached are Model.xlsm and Busstops.xlsm

    I sheet1 of model when one clicks in column c & d I want the combobox to appear but it must be populated with the list of stop names that is contained in the range "Names" which is in the Busstops file. this is the code that I have been using for test purposes.

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 02-03-2015, 05:55 AM
  2. populate a combobox based on unique values in another workbook
    By roninn75 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2013, 03:36 AM
  3. Need to auto-populate data from one field to another in a seperate workbook.
    By brchase6 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2013, 03:35 PM
  4. Populate a combobox when opening a workbook
    By Guido Meng in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-08-2013, 02:41 AM
  5. Populate ComboBox with a specified cell from everysheet in workbook
    By elmore87 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-23-2011, 10:33 AM
  6. Populate Userform Combobox From Separate Workbook
    By Mooseman60 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-26-2010, 06:39 AM
  7. Replies: 0
    Last Post: 08-01-2007, 02:03 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