+ Reply to Thread
Results 1 to 6 of 6

Delete the rows of listbox

  1. #1
    Registered User
    Join Date
    01-22-2021
    Location
    Hubli
    MS-Off Ver
    Microsoft office 2007
    Posts
    26

    Delete the rows of listbox

    please anyone help me out
    i want to delete the rows is listbox , in which status column is empty
    only in listbox not in sheet...
    here i attached the file
    Attached Files Attached Files
    Last edited by supmk; 04-14-2021 at 08:29 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Delete the rows of listbox

    Hi supmk,

    when I downloaded the sample I didn`t expect the opening to throw exceptions all over the place...

    First of all: is it really a good idea to give a rowsource which should be a conbstant and then delete unwanted rows? Wouldn´t it be better to just load the rows that match what you are looking for?

    After I made the UserForm starting for my system I added a frame and three optionbuttons inside that frame named opt1 (All), opt2 (Open) and opt3 (in Progress) as well as a commandbutton for unloading the UF called Unload Me. The code for the Initialize and CommandButton looks like this:

    Please Login or Register  to view this content.
    The code for the OptionButtons:
    Please Login or Register  to view this content.
    All three OptionButtons call the same prcedure behind the UserForm:
    Please Login or Register  to view this content.
    As you may see in attached pics I aded the headers to the first entry of the array.

    HTH,
    Holger
    Attached Images Attached Images
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    01-22-2021
    Location
    Hubli
    MS-Off Ver
    Microsoft office 2007
    Posts
    26

    Re: Delete the rows of listbox

    sir its fine,
    but i need the operation should be done in listbox only. i don't want to call or take reference of sheet

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Delete the rows of listbox

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  5. #5
    Registered User
    Join Date
    01-22-2021
    Location
    Hubli
    MS-Off Ver
    Microsoft office 2007
    Posts
    26

    Re: Delete the rows of listbox

    sit this is a link where i posted a thread , please do help me sir
    https://www.ozgrid.com/forum/index.p...ws-of-listbox/

  6. #6
    Registered User
    Join Date
    01-22-2021
    Location
    Hubli
    MS-Off Ver
    Microsoft office 2007
    Posts
    26

    Re: Delete the rows of listbox

    initially i have no idea about this... and sorry for that i will not repeat this..
    please forgive me

+ 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. [SOLVED] Adding delete code on userform to delete a row on sheet by selecting item on a listbox
    By darbar76528 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-07-2020, 12:50 PM
  2. Showing rows in listbox that are older than 2 months based and delete
    By sniper1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2020, 04:55 AM
  3. ListBox delete selected if not then message: Please select something from listbox
    By KrisLaw in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2019, 06:28 AM
  4. [SOLVED] delete rows of selected items on listbox
    By 9599lorenzo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2015, 01:57 PM
  5. Delete rows that do not match items from listbox
    By pietras152 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2013, 01:08 PM
  6. Read text file to ListBox and Delete rows in ListBox and re-write text file
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-29-2012, 09:42 AM
  7. Delete Autofiltered rows from multi-column Listbox
    By kriswhiteley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2012, 08:46 AM

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