+ Reply to Thread
Results 1 to 4 of 4

Userform combo box with dropdown and excess blanks

  1. #1
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    64

    Userform combo box with dropdown and excess blanks

    Hi, I am really new to creating user forms but I'm trying to learn via forums and YouTube tutorials.
    I have made a form and it has combo boxes. The dropdown is from a table where the biggest list in a column consists of 90 rows. My first dropdown may be a column with only 6 items that I want users to choose from but shows lots of blanks after my initial options. Is there a way to get the drop down to only populate the choices in the column and not populate the excessive blanks?
    I have searched for an answer but all of the results relate to data validation lists and don't help my problem.
    The 'Other' option should be the last selectable option but as you can see the blanks go on for a long time.

    Screenshot 2022-05-25 120540.png

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Userform combo box with dropdown and excess blanks

    I found this code online... the idea is to create an array from a range & remove the blanks from the array. I've used/written code like this, and it works perfectly well.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    64

    Re: Userform combo box with dropdown and excess blanks

    Thank you for this. Problem solved

  4. #4
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Userform combo box with dropdown and excess blanks

    Great! If I helped you out, please consider adding rep

+ 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 options based on another combo box in different userform
    By bujaber10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2019, 03:08 PM
  2. VBA Userform combo box - need to enable user to add new item if not listed in combo box
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2015, 07:25 PM
  3. [SOLVED] Remove duplicates and blanks from Combo Box Excel Userform?
    By jmotuk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2013, 12:22 PM
  4. Dropdown list with blanks
    By hendrikbez in forum Excel General
    Replies: 2
    Last Post: 11-07-2012, 04:27 AM
  5. Blanks on a dropdown list
    By benedictexcel in forum Excel General
    Replies: 2
    Last Post: 03-28-2012, 10:30 AM
  6. Blanks keep disappearing in dropdown
    By janschepens in forum Excel General
    Replies: 7
    Last Post: 10-24-2011, 12:00 PM
  7. Preventing Blanks in Combo Box
    By jigneshoctober in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2011, 10:20 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