+ Reply to Thread
Results 1 to 5 of 5

Combo box in a user form

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    25

    Combo box in a user form

    Hi all,

    I am trying to create a userform that requires the user to enter three pieces of information. The first is a name, the second is a piece of equipment and the third a date. I have managed to set the form up with a combo box for name and equipment but I'm struggling with the code.

    I would like the first combo box to use the values that have been entered in cells A5:A35 which contains a list of names. I would like the second combo box to use the values from HT5:HT15 which is a list of different pieces of equipment. I can't figure out the code to put these values in automatically.

    Finally, when the user hits confirm I would like the data that they have selected to go into the first available row in column HU.

    Any help, either with the first or second part would be greatly appreciated.

    Many thanks in adavance.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Combo box in a user form

    Hi fazthfc,
    maybe something like this (for the first part)
    Please Login or Register  to view this content.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Combo box in a user form

    While on the Forum in design mode, click on the first combobox --> Press F4 to open Properties --> RowSource --> A5:A35
    Do the same for other combobox but change the range reference as per requirement.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    07-16-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    25

    Re: Combo box in a user form

    Great stuff. RowSource works perfectly. Thanks.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Combo box in a user form

    You're welcome.

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> 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. User form combo box
    By slickz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2014, 09:02 AM
  2. combo box user form code for two combo boxes
    By robert.begley1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-01-2012, 02:25 PM
  3. help with user form and combo box
    By TechRetard in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-01-2011, 04:56 AM
  4. [SOLVED] combo box in a user form
    By juliejg1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2006, 04:20 PM
  5. [SOLVED] Can't seem to get Combo Box on User Form
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2005, 07:06 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