+ Reply to Thread
Results 1 to 5 of 5

Combo box within Userform

  1. #1
    Registered User
    Join Date
    07-24-2008
    Location
    London
    Posts
    19

    Combo box within Userform

    I have userform with mostly textboxes except for a combo box i am trying to use. I want to be able to limit the user selection to a selected number of choices.

    This is all the code i have so far for this userform.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You don't use AddItem on the combox_change. You load the combobox on initialising the form.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-24-2008
    Location
    London
    Posts
    19
    I tried using Userform_Initialize() before instead on combox but i throws the 424 error. I am unsure to what i am actually doing wrong, please can you expand on your last comment.

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Without seeing your code, it is hard to see what may be wrong.

    You can set the MatchRequired=True in the control or in the Initialize event.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-24-2008
    Location
    London
    Posts
    19
    Thanks, working great now!

+ 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. combo box within userform directing to worksheet
    By wilwhiting in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2008, 01:51 PM
  2. 6 Character limit on userform combo box source?
    By kanuvas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2008, 06:59 AM
  3. Userform with 2 combo boxes
    By WhiteKelso in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2007, 11:46 AM
  4. Combo Box up in the userform
    By koda86 in forum Excel General
    Replies: 2
    Last Post: 06-19-2007, 06:27 AM
  5. Calender in a userform combo box
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2007, 04:57 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