+ Reply to Thread
Results 1 to 11 of 11

Listbox Item remove

  1. #1
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Thumbs up Listbox Item remove

    How do I remove an item from list after double click an item. Help me please .

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Listbox Item remove

    Assuming that the ListBox is not data bound, maybe...

    Please Login or Register  to view this content.
    Last edited by Domenic; 05-06-2012 at 04:23 PM.

  3. #3
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Listbox Item remove

    It shows an error

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Listbox Item remove

    Is your ListBox located on a UserForm or worksheet? If it's located on a worksheet, is it a form control or an ActiveX contrtol?

  5. #5
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Listbox Item remove

    Quote Originally Posted by Domenic View Post
    Is your ListBox located on a UserForm or worksheet? If it's located on a worksheet, is it a form control or an ActiveX contrtol?
    It is located in worksheet

  6. #6
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Listbox Item remove

    It is located worksheet

  7. #7
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Listbox Item remove

    I think you'll need to make sure that the ListBox is an ActiveX control, not a Form control. Note that the data source for the ListBox cannot be specified by the ListFillRange property. Have a look at the attached sample workbook.
    Attached Files Attached Files

  8. #8
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Listbox Item remove

    Sorry for the late reply....

    Thanks a lot....
    Another one thing . In the List box 1 selected item to be copied to range A1 and removed from the list box 1 list item and then next selected item copied to range A2 . next item A3... and then removed from the list box list item any idea

  9. #9
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Listbox Item remove

    Once the item in the ListBox is double-clicked, the following code copies it to the first available row in Column A of the worksheet, and removes it from the ListBox...

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Listbox Item remove

    Lot more thanks Mr. Domenic

  11. #11
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Listbox Item remove

    You're very welcome!

+ 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