+ Reply to Thread
Results 1 to 3 of 3

Double click Listbox to edit item

Hybrid View

johan12 Double click Listbox to edit... 05-20-2012, 07:31 AM
HSV Re: Double click Listbox to... 05-20-2012, 09:08 AM
curlyvan Re: Double click Listbox to... 09-22-2012, 04:12 AM
  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    46

    Double click Listbox to edit item

    I have a list box, for search the data, What I want now is after see search rezultats , Double click in row of ListBox want to open example userform1 to edit data.

    So I want to edit Data Via list box , after see search rezultats.

    See Example in attach.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    865

    Re: Double click Listbox to edit item

    Try it once.

    The value be found becomes yellow, change it in delete or clearcontents.
    Private Sub ListBox_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
    Dim ws As Worksheet
    For Each ws In ThisWorkbook.Worksheets
      Set c = ws.Columns(1).Find(ListBox.List(ListBox.ListIndex, 0), , xlValues, xlWhole)
       If Not c Is Nothing Then
           If c & c.Offset(, 1) & c.Offset(, 2) & ws.Name = ListBox.List(ListBox.ListIndex, 0) & ListBox.List(ListBox.ListIndex, 1) & ListBox.List(ListBox.ListIndex, 2) & ListBox.List(ListBox.ListIndex, 3) Then
             c.Interior.ColorIndex = 6
           End If
         End If
      Next ws
    End Sub
    Harry.

  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    philippines
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Double click Listbox to edit item

    tnx....... nyc code

+ 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