+ Reply to Thread
Results 1 to 3 of 3

Pulling Numeric Values into Form's ComboBox without Blank cells

  1. #1
    Registered User
    Join Date
    04-27-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    33

    Pulling Numeric Values into Form's ComboBox without Blank cells

    I’m trying to solve an issue in the code in the attached Excel 97 workbook (“TestCbo.xls”).

    I have two sheets and a form with a combobox. On the first worksheet (“Intake”) there are three columns (H,I,& J)with blanks in some of the rows of these columns. I’m pulling the value in column “I” into column “A” in a second worksheet (“TagsTemp”) using “If”, “Or”, “And” and “Lookup” functions, which works. I then have a form (“UserForm1”) with a combobox (“combobox1”), which is populated from column “A” of “TagsTemp”. Only the cells with number values are supposed to be listed in ComboBox1 without any blanks between the number values populated. From there a number is selected from ComboBox1 and assigned to the relevant cell in column “J” of “Intake” sheet and the “values” in column “A” of “TagsTemp” worksheet are cleared as opposed to the If/Lookup formula and the process starts over again when ComboBox1 is activated with the assigned number now not available in ComboBox1 for subsequent selections. There appears to be an error in my coding below to remove the blanks from the list.

    I would greatly appreciate some help with this issue.

    Thanks much!

    Please Login or Register  to view this content.
    TestCbo.xls

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Pulling Numeric Values into Form's ComboBox without Blank cells

    Replace the above macro with this one and see if it is what you are after.

    Please Login or Register  to view this content.
    Last edited by JapanDave; 05-17-2012 at 03:51 AM.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    04-27-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Pulling Numeric Values into Form's ComboBox without Blank cells

    Works perfectly JP.

    Greatly appreciated.

    Thanks so much!

+ 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