+ Reply to Thread
Results 1 to 4 of 4

Adding selections to combo box with VBA

  1. #1
    Forum Contributor
    Join Date
    07-26-2007
    MS-Off Ver
    2007
    Posts
    102

    Adding selections to combo box with VBA

    This should be very easy, but I am not getting it to work. I have a userform with a combo box and I just want to hard code the values to it in VBA. I want the value in the combo box to be 1 - 10. Here is what I have so far.
    Please Login or Register  to view this content.
    For some reason I cannot get this to work. Any suggestions would be extremely helpful.

    Thank You!
    Last edited by jcarstens; 10-19-2009 at 01:10 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Adding selections to combo box with VBA

    hello jcarstens.
    What you have should work. Cheek to see if it is actually combobox1.

    though the quickes way may be.
    Please Login or Register  to view this content.
    Hope this helps.

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Adding selections to combo box with VBA

    or maybe

    Please Login or Register  to view this content.
    D_rennie happy new avatar
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Adding selections to combo box with VBA

    Quote Originally Posted by jcarstens View Post
    This should be very easy, but I am not getting it to work. I have a userform with a combo box and I just want to hard code the values to it in VBA. I want the value in the combo box to be 1 - 10. Here is what I have so far.
    Please Login or Register  to view this content.
    For some reason I cannot get this to work. Any suggestions would be extremely helpful.

    Thank You!
    I can't see why your code doesn't work, unless yo have pasted it into the wrong place, perhaps a Standard module
    Hope that helps.

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

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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