+ Reply to Thread
Results 1 to 7 of 7

Record matching for list box click event code.

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

    Record matching for list box click event code.

    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 Column A from record 6 on in the Sheet ReturnData (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 Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Record matching for list box click event code.

    What do you mean from record 6 on?

    Do you want to exclude the first 5 records for some reason?
    If posting code please use code tags, see here.

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

    Re: Record matching for list box click event code.

    Exclude the first 5 records on the ReturnData sheet (they are heading/title rows etc, the records dont start until row 6).

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Record matching for list box click event code.

    So not the 6th record but the 1st record which is in row 6?

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

    Re: Record matching for list box click event code.

    Your right I used the wrong word, I meant to say 6th row not record. My apologies.

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

    Re: Record matching for list box click event code.

    Is this possible Norie?

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Record matching for list box click event code.

    Yes, and the code will look a lot like the other code that gets data from that worksheet based on what's selected in a listbox.

    Assuming this is the same workbook as before of course.

+ 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] Click on a cell in sheet1 and find matching record on sheet2
    By vbacheck in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2013, 12:14 AM
  2. Unable to get code to run a click event on workbook open
    By taylog2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2012, 09:39 PM
  3. Code to use for a click event to match data in a range
    By Pyro Form in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 10:14 PM
  4. [SOLVED] I need a simple code for a click event using a UserForm ComboBox
    By Pyro Form in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2012, 07:58 AM
  5. Add Code To Button Click Event Using VBA
    By chergh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2009, 06:24 AM

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