+ Reply to Thread
Results 1 to 10 of 10

Search for multiple rows from multiple sheets by criteria & show result in userform

  1. #1
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Search for multiple rows from multiple sheets by criteria & show result in userform

    Hi

    I have two sheets, existing clients & pc clients. In my userform, i want to be able to enter a client name, press search and excel must search in both sheets for the client name and display all the data from that row in the userform.

    also....

    I want to be able to enter a suburb and by selection of the option buttons, excel must search for the suburb either in the existing clients sheet, the pc clients sheet or both and display all of the rows that have that suburb in the userform.

    Attached is the workbook that i am reffering to. I have no clue where to even begin with the code for this. please help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    Hi
    Have a look at the attached.
    Good luck
    Tony

  3. #3
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    Hi

    Thank you for the reply. It seems that i have attached the incorrect file. I need for this to be in userform.

    see attached the correct file.
    Attached Files Attached Files

  4. #4
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    Bump.......................

  5. #5
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    sorry, your local dumbass is at it again...... kept attaching the incorrect file.
    attached please find the correct file....
    Attached Files Attached Files

  6. #6
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    ANDREAAS

    1) There is not a column for the customer name in your worksheets. How we'll do the search by a criterion that does not exists?

    2) I can give you a workable solution(using Advanced filter) BUT for the option "Both", the results will be in different listboxes. Are you interest for something like this?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --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.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    absolutey Fotis. any help is more than welcome

  8. #8
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    B3 is for the customer name

  9. #9
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    So here we are.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Search for multiple rows from multiple sheets by criteria & show result in userform

    thanks Fotis, you rock!

+ 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. Convert Text into multiple rows and search result in next sheet
    By Bathi Anusha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2014, 09:30 AM
  2. [SOLVED] Userform and multiple search criteria with drop down validation for 2003.
    By Spreadlover in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2013, 08:19 PM
  3. [SOLVED] Search multiple sheets for criteria and paste all matched rows in new sheet
    By BertLady56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2012, 01:09 PM
  4. Search for Multiple String Values on Multiple Sheets and Copy Rows to New Sheet
    By rrtikker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 12:21 PM
  5. Search for multiple criteria then return result
    By ctrapper in forum Excel General
    Replies: 7
    Last Post: 03-15-2011, 09:03 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