+ Reply to Thread
Results 1 to 10 of 10

dynamic range in combo box

  1. #1
    Registered User
    Join Date
    08-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    15

    dynamic range in combo box

    I want to use a dynamic range in a combo box. The formula seems to work fine. When I inspect the range by clicking on the formula field in the 'name manager', I can see the field expand or contract, as expected, when I add or delete data.. I am using =OFFSET(Applicants!$A$1,1,2,COUNTA(Applicants!$A:$A)-1,1). The formula appears to be doing its job.

    I typed the name into the ListFillRange field of the combobox. When I add names into the field I now lose the bottom of the range in the display of the combobox. In other words, once in the combobox, the dispalyed field is not dynamic. But the field in the data page expands just like you would expect.

    Is there a solution. Thanks for your help.
    Last edited by Ziggy943; 08-21-2011 at 03:37 AM.

  2. #2
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: dynamic range in combo box

    Hi Ziggy...could you upload a sample workbook?
    -Greg If this is helpful, pls click Star icon in lower left corner

  3. #3
    Registered User
    Join Date
    08-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: dynamic range in combo box

    I am new to this. Hope it works.

    The names and dynamic formula is on the "Applicants" tab. The range can be inspected with the name manager.

    The problem shows up in the drop-down on the 2nd tab. Note that when you add a name it drops the visibility of one at the bottom.

    Thanks for the help.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: dynamic range in combo box

    Forgot to mention.

    I add names in the first tab. Only first and last need to be filled in.

  5. #5
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: dynamic range in combo box

    Wow that's a crazy problem The only way I could get it to refresh was through a change event on the Applicants tab. I had to add the following code to the worksheet object in the VBE. Let me know if you're not familiar with how to do that.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: dynamic range in combo box

    I do not know how to do that.

    Will that auto-update to ListFillRange? I thought the dynamic range would automatically expand in the dropdown.

    Thank you for the help.

  7. #7
    Registered User
    Join Date
    08-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: dynamic range in combo box

    I put the line into the "Applicants" macro and it seems to work. Thank you so very much.

    Ziggy

  8. #8
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: dynamic range in combo box

    Hi Ziggy...glad it's working for you. If you think it's good enough to not look for any other answers, feel free to mark this thread as solved. Also...would really help me out if you clicked my scales

  9. #9
    Registered User
    Join Date
    08-19-2011
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    15

    Smile Re: dynamic range in combo box

    Again, Thanks. That works.

    I was looking for the solved button but I don't see it. Can you guide me through that and the scales?

  10. #10
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: dynamic range in combo box

    Hi Ziggy. Rule number 9 on the forum rules explains how to mark a thread as solved. The scales are on the right side of each post. Have a great day!

    http://www.excelforum.com/forum-rule...rum-rules.html

+ 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