+ Reply to Thread
Results 1 to 8 of 8

Selective values to fill combobox

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Selective values to fill combobox

    I need to show values in combobox that have no values to the left of them. It is a calendar with dates as the first column and then either events or blanks in the next column. For my form I want only the dates with blanks to show in the combobox. So far I have this code, but I'm having trouble adding a loop as it makes excel crash. I would then need code to input an event to the sheet next to a date (I have added a textbox to the form to do this). This is my code so far:

    Please Login or Register  to view this content.
    Please help!
    Last edited by davesexcel; 12-27-2012 at 12:58 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Selective values to fill combobox

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-27-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Selective values to fill combobox

    Doesn't work
    Only shows one value with a blank next too it, doesnt show the rest

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Selective values to fill combobox

    What do you get for the
    Please Login or Register  to view this content.
    when you single step through??

  5. #5
    Registered User
    Join Date
    12-27-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Selective values to fill combobox

    I've stepped through it and it doesnt loop at all, goes through it fine without errors but doesnt try to go back to the top.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Selective values to fill combobox

    If it doesn't work that way - maybe:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-27-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Selective values to fill combobox

    it works!!! but is only displaying 18 dates free when there are over 100...

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Selective values to fill combobox

    What does it show for
    Please Login or Register  to view this content.
    if it shows the actual last row number then it's not the problem I think it is - why don't you try it with the actual last row number? And, if it works - we'll need to find another way to code for the last row??

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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