Results 1 to 10 of 10

Clear not delete list box entry

Threaded View

  1. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,308

    Re: Clear not delete list box entry

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

    Private Sub Cmd_02_Click()
        With LB_00
            For i = 0 To .ListCount - 1
                If .Selected(i) Then
                    T2.Cells(.ListIndex + 2, 1).resize(,82).clearcontents
                End If
            Next
            .List = [data_tbl].Value
        End With
    End Sub
    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.

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