+ Reply to Thread
Results 1 to 10 of 10

Clear not delete list box entry

  1. #1
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Clear not delete list box entry

    Hi,

    I would like to clear not delete rows over a vba user form. How can I tranlate the code below into a code, that I can clear the selected entriy from the list box? Is this even possible without writing a funciton

    Please Login or Register  to view this content.
    Best




    Tried :

    Please Login or Register  to view this content.
    Last edited by travelkid; 03-15-2019 at 03:58 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Clear not delete list box entry

    It's not exactly clear from your post what you're trying to achieve so I'm guessing here.

    Try:
    Please Login or Register  to view this content.
    BSB

  3. #3
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: Clear not delete list box entry

    This one is not working. I press the button, nothing happens, no error. Are you sure that the quotation marks should be like that? My goal is to simply pick a entry from the list box and clear that entry. I do not want to use the method delete, because this delets the cells.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Clear not delete list box entry

    Yes the quotation marks are correct, but that doesn't mean it's the correct solution for you! As I said, it's not clear from your post what you actually want to do here. I'd suggest you attach your workbook so we can better understand the requirement.

    BSB

  5. #5
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: Clear not delete list box entry

    OKey, here is the workbook. So as you can see you can you can pick a database entry by clicking on the list box. Im trying to delete the entries that are picked with the löschen/delete button.

    Best
    Attached Files Attached Files

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Clear not delete list box entry

    Maybe this:
    Please Login or Register  to view this content.
    BSB

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Clear not delete list box entry

    Another one. Select value to delete in Listbox before pressing button.

    Please Login or Register  to view this content.
    Last edited by bakerman2; 03-15-2019 at 06:40 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  8. #8
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Clear not delete list box entry

    Nächster Code unter der Löschtaste.
    Please Login or Register  to view this content.
    Click the * Add Reputation below to say thanks.

  9. #9
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: Clear not delete list box entry

    Used the one from badly spelled buoy, which works fine. Thanks.

  10. #10
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Clear not delete list box entry

    Glad I could help.

    Don't forget to mark the thread as SOLVED if you're happy you have a working solution.

    BSB

+ 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. Combobox excel clear entry
    By RJ1969 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2017, 06:00 PM
  2. [SOLVED] Stop entry overwrite and clear cell data off of entry in another cell
    By COURTTROOPER in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2017, 02:33 PM
  3. [SOLVED] create clean list after delete bad entry
    By smatbis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-25-2016, 06:38 PM
  4. Replies: 3
    Last Post: 09-12-2013, 12:37 AM
  5. Vba for move data & clear entry screen for entry new data..
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-27-2012, 09:19 PM
  6. Replies: 0
    Last Post: 04-30-2012, 12:59 PM
  7. Copy and Clear Entry
    By Christeen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2011, 09:44 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