+ Reply to Thread
Results 1 to 4 of 4

Combobox_userform_range question

  1. #1
    Registered User
    Join Date
    09-14-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    22

    Unhappy Combobox_userform_range question

    I have a userform with a combobox inside.
    I would like to populate a range in a worksheet as a drop down list.
    Please Login or Register  to view this content.
    Can you help to see what wrong with the code? I had a message "Type missmatch"
    I can use Rowsourse in the properties window to populate a range but they include the blank cells.

    Thanks
    Last edited by sweetboy02125; 11-10-2010 at 02:44 PM.

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

    Re: Combobox_userform_range question

    N cannot be Nothing, it might be 0, but your code runs from n=2 to20. The mismatch error is because it is declared as a Long

    A little more explanation & an example workbook would help
    Last edited by royUK; 11-10-2010 at 12:22 PM.
    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
    09-14-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Combobox_userform_range question

    Basiclly i have a list of data in column 5 or E ( can be 5 or 6 or 9... name). Just would like to populate them in a userform combobox. The code i had is trying to add all of names in the "Option" worksheet to the combobox. it adds until the last row is blank then stop.

  4. #4
    Registered User
    Join Date
    09-14-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Combobox_userform_range question

    Please Login or Register  to view this content.
    i got it thanks.

+ 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