+ Reply to Thread
Results 1 to 3 of 3

Excel combobox problem

  1. #1
    Registered User
    Join Date
    08-24-2005
    Posts
    2

    Excel combobox problem

    I'm using a combobox populated from rTest (a 4 column, 60 row named range) and linking it to a cell named Test. My problem is that it only displays the first 41 rows of that range in the dropdown.

    The following are the properties that I've changed for the combobox:

    LinkedCell = Test
    ListFillRange = rTest
    ListRows = 20
    SelectionMargin = false
    BorderStyle = fmBorderStyleSingle


    This is excel 2003.

  2. #2
    Registered User
    Join Date
    08-24-2005
    Posts
    2
    revised problem:

    A combobox apparently does not update itself when changes are made to its named range. Adding several entries or moving the range results in the combobox having the wrong values until you close and reopen the workbook.

    My question is, how can I force a refresh of a combobox every time its source range is changed? VBA is acceptable.

  3. #3
    Dave Peterson
    Guest

    Re: Excel combobox problem

    Maybe...

    Option Explicit
    Private Sub ComboBox1_GotFocus()
    Me.ComboBox1.ListFillRange _
    = Worksheets("sheet1").Range("a1:a10").Address(external:=True)
    End Sub

    Although, in my minor testing, if I changed something in the listfillrange, it
    showed up in the combobox.


    aoeui wrote:
    >
    > revised problem:
    >
    > A combobox apparently does not update itself when changes are made to
    > its named range. Adding several entries or moving the range results in
    > the combobox having the wrong values until you close and reopen the
    > workbook.
    >
    > My question is, how can I force a refresh of a combobox every time its
    > source range is changed? VBA is acceptable.
    >
    > --
    > aoeui
    > ------------------------------------------------------------------------
    > aoeui's Profile: http://www.excelforum.com/member.php...o&userid=26603
    > View this thread: http://www.excelforum.com/showthread...hreadid=398764


    --

    Dave Peterson

+ 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