+ Reply to Thread
Results 1 to 3 of 3

Delete Items by selecting from Listbox and sheet

  1. #1
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Post Delete Items by selecting from Listbox and sheet

    Hi everyone

    I have a Listbox in which the data is loaded from the information entered into a spreadsheet.

    img1.PNG
    img2.PNG

    In this Listbox, I can get a filter from the record dates (Start Date and End Date).

    I configured my listbox to be multselect and I need to configure a button to delete the selected items in the Listbox. They must be deleted from the Listbox and the spreadsheet simultaneously.

    I have so far been able to delete only 1 item at a time. But I need the button to delete all the items that are selected in the Listbox, deleting both the listbox and the spreadsheet.

    can anybody help me?

    Thank you very much in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Delete Items by selecting from Listbox and sheet

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    03-30-2017
    Location
    Brazil
    MS-Off Ver
    2019
    Posts
    54

    Re: Delete Items by selecting from Listbox and sheet

    Perfect!

    Thanks AlphaFrog!

+ 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. Delete all associated variables in a listbox items with same value
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2017, 04:49 PM
  3. Problem with Selecting all items of IE listbox
    By gibbsa08 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-22-2016, 03:59 PM
  4. Userform Selecting listbox items erroneously
    By pjwhitfield in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 05-25-2015, 04:11 PM
  5. [SOLVED] Type Mismatch when selecting items from a listbox
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2012, 04:46 PM
  6. selecting multiple listbox items based on test in range
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2009, 04:32 PM
  7. Selecting multiple items on Listbox
    By Rahul_Uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2006, 12:29 PM

Tags for this Thread

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