+ Reply to Thread
Results 1 to 4 of 4

Remove first item in Listbox on form Initialize

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    103

    Remove first item in Listbox on form Initialize

    Please Login or Register  to view this content.
    I need just the very first item of Listbox1.IndexList to be removed on form.Initialize(). Any suggestions how to do this?

    I tried all the following, all with errors:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Remove first item in Listbox on form Initialize

    Don't include it in the list index, maybe?

  3. #3
    Forum Contributor
    Join Date
    08-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    103

    Re: Remove first item in Listbox on form Initialize

    I can't because the listbox RowSource is a named range and the named range is an entire column in case the customers add a ton of entries. I had considered using a smaller range which would obviously solve this issue, however I was hoping there'd be an easy fix. After spending the last couple months studying vb.net, I'm discovering there are some things that are so much easier to accomplish in vb.net, or maybe I just have more experience with it now, lol!

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,320

    Re: Remove first item in Listbox on form Initialize

    Simple solutions:
    1. Use a dynamic named range (see here)
    2. Don't use RowSource at all - populate the control in code.

    Unless you want to use column headers, I'd recommend option 2.
    Everyone who confuses correlation and causation ends up dead.

+ 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. Remove selected item from listbox
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2014, 08:36 AM
  2. [SOLVED] Listbox Item remove
    By thameem127 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-19-2012, 03:06 PM
  3. [SOLVED] Populate Listbox with a range from one worksheet (criteria) and remove if item found
    By Foreverlearning in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-08-2012, 07:31 AM
  4. remove item from listbox
    By bahadirakcan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2006, 10:19 PM
  5. listbox remove Item
    By Simon Shaw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2005, 06:05 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