+ Reply to Thread
Results 1 to 5 of 5

Code to find matching record in listbox on sheet.

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Code to find matching record in listbox on sheet.

    I'm looking for click event code for a list box called lbActiveItemList that finds a match for the selected record in Column 1, to ReturnData Sheet Column A from row 6 on (using the G column to find the last row). Upon finding a match it should close the userform, and make the G cell for the matching record the Active Cell.

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Code to find matching record in listbox on sheet.

    difficult to say without an example.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Code to find matching record in listbox on sheet.

    Please send a sample with mock data with the expected results..

  4. #4
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Code to find matching record in listbox on sheet.

    I have attached my workbook. On the ReturnData page click on the Active Equipment button at the top. Then select an item from either the top or middle list box to display records in the bottom list box. I would then like to be able to double click on a record within that bottom listbox (lbActiveItemList) and have it show that record in the worksheet, (and close the userform).
    Thanks,
    James
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Code to find matching record in listbox on sheet.

    Any thoughts?

+ 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. Record matching for list box click event code.
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2014, 04:52 AM
  2. [SOLVED] Find matching record based on data input in different cell
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 7
    Last Post: 11-25-2013, 08:51 AM
  3. Userform - search database for matching records, find next if more than one record
    By beaterfred in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2012, 11:56 AM
  4. [SOLVED] Find A Record In Another Sheet With VBA Code
    By taccoo73 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-12-2012, 11:33 AM
  5. macro to find matching record in a different workbook
    By PBM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2008, 08:09 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