+ Reply to Thread
Results 1 to 3 of 3

Populate data from a Combobox in a UserForm into a combobox in another UserForm

  1. #1
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Colorado, US
    MS-Off Ver
    MS Prof. 2010 and 2013 + 365
    Posts
    113

    Populate data from a Combobox in a UserForm into a combobox in another UserForm

    I am not a programmer and still consider myself a novice at VBA, so I'll try to explain this as well as I can. If my question is not clear, or you need to see my code, please let me know.

    I am using two UserForms. The first is Userform 1, which is used for entering new data, which contains approx. 90 data entry fields and contains a lot of ComboBoxes and ListBoxes (which allows the user to select the appropriate data).
    The second is UserForm2, which is identical in layout to Userform 2, but is designed for a user to find and edit records (that were entered using UserForm1).
    When you select a name in the primary field in Userform2, the form populates with the data that was entered by using UserForm1 (and placed in a datasheet). This is working well, but all the data that populates UserForm2 is placed in TextBoxes.
    I would like find out how I can populate ComboBoxes in UserForm2 with that data, and then allow the user to change the data by using ComboBoxes in UserForm2.

    Any thoughts/suggestions are very welcome,

    Thank you,

    John
    Last edited by johnw993; 03-02-2015 at 02:11 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Populate data from a Combobox in a UserForm into a combobox in another UserForm

    Exactly the same way as you are doing it now, you just need to swap the textboxes for comboboxes and set their .List property. You can then set their values as you would with a textbox

    FWIW I'd just have one form

  3. #3
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Colorado, US
    MS-Off Ver
    MS Prof. 2010 and 2013 + 365
    Posts
    113

    Re: Populate data from a Combobox in a UserForm into a combobox in another UserForm

    Thanks Kyle,
    I didn't know it could be that simple. I'll experiment with it.
    When I make it work, then yes, I can now build it all into one single UserForm.

    Thank you!

    I can't express how much I appreciate this Forum and the people (like you) who are providing feedback when I'm feeling stuck.

    John

+ 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. Userform Combobox to populate form: Can I change the order of the columns in the combobox?
    By CraigWiggins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2014, 12:14 PM
  2. Trying to populate a userform combobox from a userform textbox
    By jtemp57 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2014, 03:33 PM
  3. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  4. [SOLVED] Userform combobox to populate RowSource for new values in combobox
    By Stratfordoaks in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-17-2013, 01:18 PM
  5. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 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