+ Reply to Thread
Results 1 to 7 of 7

CB Data from column minus blanks

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2010
    Posts
    49

    CB Data from column minus blanks

    Hi all, prolly missing one small piece here. I want to populate my combobox with the values in (for example) C: column. If I don't define the cells with data, the CB displays a ton of blank space. Because my table data is updated and added to, trying to define it means I have to change the script from time to time. In short, how do I ask for a return of only cells in C: with a value, i.e. no blanks. A snippet is attached.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: CB Data from column minus blanks

    Hi

    Maybe loop through the range and add the items that aren't blank....

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: CB Data from column minus blanks

    Hi there, get a compile error: Variable not defined (ce)

  4. #4
    Registered User
    Join Date
    11-19-2012
    Location
    Wilmington Delaware
    MS-Off Ver
    Excel 2003 2007 2010
    Posts
    23

    Re: CB Data from column minus blanks

    Add

    Please Login or Register  to view this content.
    above the first use of cE

    Robert Flanagan
    http://www.add-ins.com
    Productivity add-ins and downloadable books on VB macros for Excel

  5. #5
    Registered User
    Join Date
    08-09-2012
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: CB Data from column minus blanks

    Ok, still not working. I need to reference the sheets where the table data resides as in my example above. Any ideas?

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: CB Data from column minus blanks

    Hi

    Please Login or Register  to view this content.
    rylo

  7. #7
    Registered User
    Join Date
    08-09-2012
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: CB Data from column minus blanks

    That did the trick! Thanks Rylo

+ 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