+ Reply to Thread
Results 1 to 4 of 4

Create ComboBox with list of values from 1 to variable number

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Create ComboBox with list of values from 1 to variable number

    Hello,
    I want to create UserForm with ComboBox in which there will be list of integer numbers from 1 to i (where 'i' is variable counted by other function)
    e.g. i = 6, so on the ComboBox list there will be: 1, 2, 3, 4, 5, 6.
    Also I would like to prompt message if user will write in ComboBox something outside of the list. Can anyone show me direction how can I do this?

    Thanks for help!

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Create ComboBox with list of values from 1 to variable number

    For a combobox named combobox1
    Please Login or Register  to view this content.
    Change the combobox MatchRequired property to True for second point.
    ________________________________________________________
    If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.

    Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.

  3. #3
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Create ComboBox with list of values from 1 to variable number

    I've found another solution but thanks anyway!

  4. #4
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Create ComboBox with list of values from 1 to variable number

    Glad you could solve your issue. May be you can post the solution you found here for others benefit.

+ 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. Vba cmd1 create workbook cmd2 create worksheet depend upon combobox values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2013, 03:20 AM
  2. Combobox Number As Variable
    By trenars in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2012, 04:31 AM
  3. Combobox Number As Variable
    By trenars in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2012, 12:42 PM
  4. Replies: 4
    Last Post: 03-31-2010, 11:41 AM
  5. Filling combobox with variable length list
    By Denny Behnfeldt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2005, 03:06 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