Consulting

Results 1 to 5 of 5

Thread: Listbox Limit!!

  1. #1
    VBAX Contributor
    Joined
    Nov 2007
    Posts
    144
    Location

    Listbox Limit!!

    Hey guys,

    I have a listbox that uses a dynamic named range in the ListFillRange property.

    Dynamic Named Range Function:

    [VBA]=OFFSET('Drop Downs'!$Q$6,0,0,COUNTA('Drop Downs'!$Q:$Q),1)[/VBA]

    The range is never more than 20 values yet if the list of values is greater than the height of the listbox, it occasionally only displays 10-12 values.


    Is anyone aware of a similar issue or solution?

    Thanks again

    F

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Don'tknow of this problem. Can you post a workbook for us to see?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Nov 2007
    Posts
    144
    Location
    I tried putting the listbox into a new sheet to show you guys the problem but as soon as I pasted it all in, it started to work properly.

    So it must be something to do with my original worksheet.

    The listbox gets its data from a dymanic range in a pivot table.

    Another listbox selects an item then the pivot table changes filter depending on the item selected.

    Now this might be a total guess.....

    but i'm thinking theListFillRange for the Listbox (with the dynamic range) may need to be refreshed each time the pivot table changes.

    I have googled around for this but can't seem to get anything to work.

    Does anyone know of any code to refresh the ListFillRange after each Pivot change

    Thanks for the help guys,

    F

  4. #4
    VBAX Contributor
    Joined
    Nov 2007
    Posts
    144
    Location
    Anyone have any ideas on this refreshing the listbox and after which event to put the code, because it's really starting to **** me off that this listbox doesn't work properly!!!!

  5. #5
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Quote Originally Posted by f2e4
    Anyone have any ideas on this refreshing the listbox and after which event to put the code, because it's really starting to **** me off that this listbox doesn't work properly!!!!
    It's really starting to **** me off that posters expect answers with totally inadequate information.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •