+ Reply to Thread
Results 1 to 6 of 6

Udateing list on a Worksheet listbox

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    Houston tx
    MS-Off Ver
    Excel 2010
    Posts
    24

    Udateing list on a Worksheet listbox

    I have a listbox that the data comes from cells on a worksheet.

    I know this is simple but can't seem to make it work.

    I would like to when the cells are filtered, redisplay on the filtered items basicly I can't seem to re-set the listrangefill property, it is initally set in the properties sheet.

    thanks

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Udateing list on a Worksheet listbox

    the listfillrange will ignore filtering so you would require code to populate the listbox by looping through the visible cells
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    Houston tx
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Udateing list on a Worksheet listbox

    After filtering, I copy the filtered data to another range which ignores the hidden rows. but I can't re-set the listrangefill property.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Udateing list on a Worksheet listbox

    why not? what have you tried and what happened?

  5. #5
    Registered User
    Join Date
    08-15-2012
    Location
    Houston tx
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Udateing list on a Worksheet listbox

    I've tried various formats, Sheets("data").listbox2.listrangefill="a1:g20"
    also sheets("data").listbox2.controlsource.listrangerfill= "a1:g20"
    these are example for the help files

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Udateing list on a Worksheet listbox

    it's listfillrange but is it a forms listbox or activex one?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Listbox or dynamic list
    By matius_88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2013, 08:42 PM
  2. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  3. [SOLVED] Userforms transfering list Listbox.list's
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-08-2012, 07:18 AM
  4. Transferring Data from Userform Listbox to Drop-down list in Worksheet
    By f5awp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-30-2011, 12:22 AM
  5. [SOLVED] list property of listbox
    By x taol in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2006, 03:55 PM

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