+ Reply to Thread
Results 1 to 4 of 4

Remove ListBox items starting from the top

  1. #1
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Remove ListBox items starting from the top

    Hello,

    I am adding items to a listbox and I want to purge items as it fills up. Right now my limit of items is 10. How can remove the first 5 at the top (which are the oldest) once the listbox list equals 11? Right now I am just clearing the entire listbox, but I would like to keep the most recent 5 items.

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Remove ListBox items starting from the top

    Maybe this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Remove ListBox items starting from the top

    hi Nu2Java, option, if the listbox rowsource property has no range being specified:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Remove ListBox items starting from the top

    Thank You for the help Mike and watersev... Both of these options work very well. I will play around with it and see which one fits my needs. I appreciate your time and help!

+ 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